summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--session.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 10488fed0..de8f36473 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
720010503 1020010503
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 $
diff --git a/session.c b/session.c
index 3960c9f25..bb98176b5 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
33 */ 33 */
34 34
35#include "includes.h" 35#include "includes.h"
36RCSID("$OpenBSD: session.c,v 1.74 2001/04/17 19:34:25 markus Exp $"); 36RCSID("$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,