diff options
author | 2019-12-06 02:55:21 +0000 | |
---|---|---|
committer | 2019-12-06 02:55:21 +0000 | |
commit | 45d8925ef1936103702d3933caea660c17dfa043 (patch) | |
tree | fb45dac5ed4df3b243233d49be58addc3e552c19 /usr.bin/ssh/readpass.c | |
parent | when copying capabilities from the first port to a trunk, copy hardmtu too. (diff) | |
download | wireguard-openbsd-45d8925ef1936103702d3933caea660c17dfa043.tar.xz wireguard-openbsd-45d8925ef1936103702d3933caea660c17dfa043.zip |
bring the __func__
Diffstat (limited to 'usr.bin/ssh/readpass.c')
-rw-r--r-- | usr.bin/ssh/readpass.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/ssh/readpass.c b/usr.bin/ssh/readpass.c index a4ca4dd89b1..ad70ca13bde 100644 --- a/usr.bin/ssh/readpass.c +++ b/usr.bin/ssh/readpass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: readpass.c,v 1.58 2019/11/27 05:00:17 djm Exp $ */ +/* $OpenBSD: readpass.c,v 1.59 2019/12/06 02:55:21 djm Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -55,26 +55,26 @@ ssh_askpass(char *askpass, const char *msg) void (*osigchld)(int); if (fflush(stdout) != 0) - error("ssh_askpass: fflush: %s", strerror(errno)); + error("%s: fflush: %s", __func__, strerror(errno)); if (askpass == NULL) fatal("internal error: askpass undefined"); if (pipe(p) == -1) { - error("ssh_askpass: pipe: %s", strerror(errno)); + error("%s: pipe: %s", __func__, strerror(errno)); return NULL; } osigchld = signal(SIGCHLD, SIG_DFL); if ((pid = fork()) == -1) { - error("ssh_askpass: fork: %s", strerror(errno)); + error("%s: fork: %s", __func__, strerror(errno)); signal(SIGCHLD, osigchld); return NULL; } if (pid == 0) { close(p[0]); if (dup2(p[1], STDOUT_FILENO) == -1) - fatal("ssh_askpass: dup2: %s", strerror(errno)); + fatal("%s: dup2: %s", __func__, strerror(errno)); setenv("SSH_ASKPASS_PROMPT", "confirm", 1); /* hint to UI */ execlp(askpass, askpass, msg, (char *)NULL); - fatal("ssh_askpass: exec(%s): %s", askpass, strerror(errno)); + fatal("%s: exec(%s): %s", __func__, askpass, strerror(errno)); } close(p[1]); |