diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | session.c | 9 |
2 files changed, 9 insertions, 5 deletions
@@ -3,6 +3,9 @@ | |||
3 | - stevesk@cvs.openbsd.org 2001/05/03 15:07:39 | 3 | - stevesk@cvs.openbsd.org 2001/05/03 15:07:39 |
4 | [channels.c] | 4 | [channels.c] |
5 | typo in debug() string | 5 | typo in debug() string |
6 | - markus@cvs.openbsd.org 2001/05/03 15:45:15 | ||
7 | [session.c] | ||
8 | exec shell -c /bin/sh .ssh/sshrc, from abartlet@pcug.org.au | ||
6 | 9 | ||
7 | 20010503 | 10 | 20010503 |
8 | - OpenBSD CVS Sync | 11 | - OpenBSD CVS Sync |
@@ -5314,4 +5317,4 @@ | |||
5314 | - Wrote replacements for strlcpy and mkdtemp | 5317 | - Wrote replacements for strlcpy and mkdtemp |
5315 | - Released 1.0pre1 | 5318 | - Released 1.0pre1 |
5316 | 5319 | ||
5317 | $Id: ChangeLog,v 1.1191 2001/05/03 22:35:32 mouring Exp $ | 5320 | $Id: ChangeLog,v 1.1192 2001/05/03 22:37:26 mouring Exp $ |
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.74 2001/04/17 19:34:25 markus Exp $"); | 36 | RCSID("$OpenBSD: session.c,v 1.75 2001/05/03 15:45:15 markus Exp $"); |
37 | 37 | ||
38 | #include "ssh.h" | 38 | #include "ssh.h" |
39 | #include "ssh1.h" | 39 | #include "ssh1.h" |
@@ -1393,10 +1393,11 @@ do_child(Session *s, const char *command) | |||
1393 | if (!options.use_login) { | 1393 | if (!options.use_login) { |
1394 | /* ignore _PATH_SSH_USER_RC for subsystems */ | 1394 | /* ignore _PATH_SSH_USER_RC for subsystems */ |
1395 | if (!s->is_subsystem && (stat(_PATH_SSH_USER_RC, &st) >= 0)) { | 1395 | if (!s->is_subsystem && (stat(_PATH_SSH_USER_RC, &st) >= 0)) { |
1396 | snprintf(cmd, sizeof cmd, "%s -c '%s %s'", | ||
1397 | shell, _PATH_BSHELL, _PATH_SSH_USER_RC); | ||
1396 | if (debug_flag) | 1398 | if (debug_flag) |
1397 | fprintf(stderr, "Running %s %s\n", _PATH_BSHELL, | 1399 | fprintf(stderr, "Running %s\n", cmd); |
1398 | _PATH_SSH_USER_RC); | 1400 | f = popen(cmd, "w"); |
1399 | f = popen(_PATH_BSHELL " " _PATH_SSH_USER_RC, "w"); | ||
1400 | if (f) { | 1401 | if (f) { |
1401 | if (do_xauth) | 1402 | if (do_xauth) |
1402 | fprintf(f, "%s %s\n", s->auth_proto, | 1403 | fprintf(f, "%s %s\n", s->auth_proto, |