summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-05-03 22:37:26 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-05-03 22:37:26 +0000
commit60402fd42a6305f1df1de9269ba1654f02fe1309 (patch)
tree2d3a359e3eb4208abd74212396b46cad24248ff2 /session.c
parent2b45180b2e743302ec502737fcd8abce4397f82d (diff)
- markus@cvs.openbsd.org 2001/05/03 15:45:15
[session.c] exec shell -c /bin/sh .ssh/sshrc, from abartlet@pcug.org.au
Diffstat (limited to 'session.c')
-rw-r--r--session.c9
1 files changed, 5 insertions, 4 deletions
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,