diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-01-04 22:41:04 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-01-04 22:41:04 +0000 |
commit | a82837b34b28016f61b6c5ca0a30202b460b4758 (patch) | |
tree | e991be156ca6a7860f83d9f96cba685d4169fcc1 /usr.bin/ssh/session.c | |
parent | ad5329a7c33501c48a7d19e85dd6a0d25a52d7d5 (diff) |
consistent use of _PATH_BSHELL; from stevesk@pobox.com
Diffstat (limited to 'usr.bin/ssh/session.c')
-rw-r--r-- | usr.bin/ssh/session.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index d3c20fcee9e..48028a6f662 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.45 2000/12/19 23:17:58 markus Exp $"); +RCSID("$OpenBSD: session.c,v 1.46 2001/01/04 22:41:03 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -1014,9 +1014,9 @@ do_child(const char *command, struct passwd * pw, const char *term, if (!options.use_login) { if (stat(SSH_USER_RC, &st) >= 0) { if (debug_flag) - fprintf(stderr, "Running /bin/sh %s\n", SSH_USER_RC); + fprintf(stderr, "Running %s %s\n", _PATH_BSHELL, SSH_USER_RC); - f = popen("/bin/sh " SSH_USER_RC, "w"); + f = popen(_PATH_BSHELL " " SSH_USER_RC, "w"); if (f) { if (auth_proto != NULL && auth_data != NULL) fprintf(f, "%s %s\n", auth_proto, auth_data); @@ -1025,9 +1025,9 @@ do_child(const char *command, struct passwd * pw, const char *term, fprintf(stderr, "Could not run %s\n", SSH_USER_RC); } else if (stat(SSH_SYSTEM_RC, &st) >= 0) { if (debug_flag) - fprintf(stderr, "Running /bin/sh %s\n", SSH_SYSTEM_RC); + fprintf(stderr, "Running %s %s\n", _PATH_BSHELL, SSH_SYSTEM_RC); - f = popen("/bin/sh " SSH_SYSTEM_RC, "w"); + f = popen(_PATH_BSHELL " " SSH_SYSTEM_RC, "w"); if (f) { if (auth_proto != NULL && auth_data != NULL) fprintf(f, "%s %s\n", auth_proto, auth_data); |