summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-09-16 22:17:15 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-09-16 22:17:15 +0000
commit37e41c90198e4cb3c69f9faa2e0d64f580c10219 (patch)
treecb4f873bb362624d5d54b6d6dd9f03570632fa28 /session.c
parent0b9278e92315f35f1187d66e3267888bdc3c5bff (diff)
- markus@cvs.openbsd.org 2001/09/16 14:46:54
[session.c] calls krb_afslog() after setting $HOME; mattiasa@e.kth.se; fixes pr 1943b
Diffstat (limited to 'session.c')
-rw-r--r--session.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/session.c b/session.c
index d0685f86b..4873e4d74 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.101 2001/09/14 18:59:11 markus Exp $"); 36RCSID("$OpenBSD: session.c,v 1.102 2001/09/16 14:46:54 markus Exp $");
37 37
38#include "ssh.h" 38#include "ssh.h"
39#include "ssh1.h" 39#include "ssh1.h"
@@ -1194,18 +1194,6 @@ do_child(Session *s, const char *command)
1194 shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell); 1194 shell = login_getcapstr(lc, "shell", (char *)shell, (char *)shell);
1195#endif 1195#endif
1196 1196
1197#ifdef AFS
1198 /* Try to get AFS tokens for the local cell. */
1199 if (k_hasafs()) {
1200 char cell[64];
1201
1202 if (k_afs_cell_of_file(pw->pw_dir, cell, sizeof(cell)) == 0)
1203 krb_afslog(cell, 0);
1204
1205 krb_afslog(0, 0);
1206 }
1207#endif /* AFS */
1208
1209 /* Initialize the environment. */ 1197 /* Initialize the environment. */
1210 envsize = 100; 1198 envsize = 100;
1211 env = xmalloc(envsize * sizeof(char *)); 1199 env = xmalloc(envsize * sizeof(char *));
@@ -1371,6 +1359,18 @@ do_child(Session *s, const char *command)
1371 */ 1359 */
1372 environ = env; 1360 environ = env;
1373 1361
1362#ifdef AFS
1363 /* Try to get AFS tokens for the local cell. */
1364 if (k_hasafs()) {
1365 char cell[64];
1366
1367 if (k_afs_cell_of_file(pw->pw_dir, cell, sizeof(cell)) == 0)
1368 krb_afslog(cell, 0);
1369
1370 krb_afslog(0, 0);
1371 }
1372#endif /* AFS */
1373
1374 /* 1374 /*
1375 * Run $HOME/.ssh/rc, /etc/sshrc, or xauth (whichever is found first 1375 * Run $HOME/.ssh/rc, /etc/sshrc, or xauth (whichever is found first
1376 * in this order). 1376 * in this order).