summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/session.c b/session.c
index ca4a994e3..29956777f 100644
--- a/session.c
+++ b/session.c
@@ -1057,9 +1057,9 @@ do_child(const char *command, struct passwd * pw, const char *term,
1057 if (!options.use_login) { 1057 if (!options.use_login) {
1058 if (stat(SSH_USER_RC, &st) >= 0) { 1058 if (stat(SSH_USER_RC, &st) >= 0) {
1059 if (debug_flag) 1059 if (debug_flag)
1060 fprintf(stderr, "Running /bin/sh %s\n", SSH_USER_RC); 1060 fprintf(stderr, "Running "_PATH_BSHELL" %s\n", SSH_USER_RC);
1061 1061
1062 f = popen("/bin/sh " SSH_USER_RC, "w"); 1062 f = popen(_PATH_BSHELL " " SSH_USER_RC, "w");
1063 if (f) { 1063 if (f) {
1064 if (auth_proto != NULL && auth_data != NULL) 1064 if (auth_proto != NULL && auth_data != NULL)
1065 fprintf(f, "%s %s\n", auth_proto, auth_data); 1065 fprintf(f, "%s %s\n", auth_proto, auth_data);
@@ -1068,9 +1068,9 @@ do_child(const char *command, struct passwd * pw, const char *term,
1068 fprintf(stderr, "Could not run %s\n", SSH_USER_RC); 1068 fprintf(stderr, "Could not run %s\n", SSH_USER_RC);
1069 } else if (stat(SSH_SYSTEM_RC, &st) >= 0) { 1069 } else if (stat(SSH_SYSTEM_RC, &st) >= 0) {
1070 if (debug_flag) 1070 if (debug_flag)
1071 fprintf(stderr, "Running /bin/sh %s\n", SSH_SYSTEM_RC); 1071 fprintf(stderr, "Running "_PATH_BSHELL" %s\n", SSH_SYSTEM_RC);
1072 1072
1073 f = popen("/bin/sh " SSH_SYSTEM_RC, "w"); 1073 f = popen(_PATH_BSHELL " " SSH_SYSTEM_RC, "w");
1074 if (f) { 1074 if (f) {
1075 if (auth_proto != NULL && auth_data != NULL) 1075 if (auth_proto != NULL && auth_data != NULL)
1076 fprintf(f, "%s %s\n", auth_proto, auth_data); 1076 fprintf(f, "%s %s\n", auth_proto, auth_data);
@@ -1160,7 +1160,7 @@ do_child(const char *command, struct passwd * pw, const char *term,
1160 } else { 1160 } else {
1161 /* Launch login(1). */ 1161 /* Launch login(1). */
1162 1162
1163 execl("/usr/bin/login", "login", "-h", get_remote_ipaddr(), 1163 execl(LOGIN_PROGRAM, "login", "-h", get_remote_ipaddr(),
1164 "-p", "-f", "--", pw->pw_name, NULL); 1164 "-p", "-f", "--", pw->pw_name, NULL);
1165 1165
1166 /* Login couldn't be executed, die. */ 1166 /* Login couldn't be executed, die. */