summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2001-01-04 22:41:03 +0000
committermarkus <markus@openbsd.org>2001-01-04 22:41:03 +0000
commit151d3eb2a5bd8dcf04a7a4fbaef6f78c5b66c230 (patch)
treec957311237a6d4908ce29c726432244bff52396c /usr.bin/ssh/sshconnect.c
parentHarmonization with other m68k arch Makefiles. Stricter compilation (diff)
downloadwireguard-openbsd-151d3eb2a5bd8dcf04a7a4fbaef6f78c5b66c230.tar.xz
wireguard-openbsd-151d3eb2a5bd8dcf04a7a4fbaef6f78c5b66c230.zip
consistent use of _PATH_BSHELL; from stevesk@pobox.com
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r--usr.bin/ssh/sshconnect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index 950cfe2c375..e4c8c92697e 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -13,7 +13,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect.c,v 1.88 2001/01/02 20:50:56 markus Exp $");
+RCSID("$OpenBSD: sshconnect.c,v 1.89 2001/01/04 22:41:03 markus Exp $");
#include <openssl/bn.h>
#include <openssl/dsa.h>
@@ -109,15 +109,15 @@ ssh_proxy_connect(const char *host, u_short port, uid_t original_real_uid,
/* Stderr is left as it is so that error messages get
printed on the user's terminal. */
- argv[0] = "/bin/sh";
+ argv[0] = _PATH_BSHELL;
argv[1] = "-c";
argv[2] = command_string;
argv[3] = NULL;
/* Execute the proxy command. Note that we gave up any
extra privileges above. */
- execv("/bin/sh", argv);
- perror("/bin/sh");
+ execv(argv[0], argv);
+ perror(argv[0]);
exit(1);
}
/* Parent. */