summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'session.c')
-rw-r--r--session.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/session.c b/session.c
index e93012679..51c5ea0ec 100644
--- a/session.c
+++ b/session.c
@@ -450,11 +450,6 @@ do_exec_no_pty(struct ssh *ssh, Session *s, const char *command)
450 close(err[0]); 450 close(err[0]);
451#endif 451#endif
452 452
453
454#ifdef _UNICOS
455 cray_init_job(s->pw); /* set up cray jid and tmpdir */
456#endif
457
458 /* Do processing for the child (exec command etc). */ 453 /* Do processing for the child (exec command etc). */
459 do_child(ssh, s, command); 454 do_child(ssh, s, command);
460 /* NOTREACHED */ 455 /* NOTREACHED */
@@ -462,9 +457,6 @@ do_exec_no_pty(struct ssh *ssh, Session *s, const char *command)
462 break; 457 break;
463 } 458 }
464 459
465#ifdef _UNICOS
466 signal(WJSIGNAL, cray_job_termination_handler);
467#endif /* _UNICOS */
468#ifdef HAVE_CYGWIN 460#ifdef HAVE_CYGWIN
469 cygwin_set_impersonation_token(INVALID_HANDLE_VALUE); 461 cygwin_set_impersonation_token(INVALID_HANDLE_VALUE);
470#endif 462#endif
@@ -576,9 +568,6 @@ do_exec_pty(struct ssh *ssh, Session *s, const char *command)
576 close(ttyfd); 568 close(ttyfd);
577 569
578 /* record login, etc. similar to login(1) */ 570 /* record login, etc. similar to login(1) */
579#ifdef _UNICOS
580 cray_init_job(s->pw); /* set up cray jid and tmpdir */
581#endif /* _UNICOS */
582#ifndef HAVE_OSF_SIA 571#ifndef HAVE_OSF_SIA
583 do_login(ssh, s, command); 572 do_login(ssh, s, command);
584#endif 573#endif
@@ -592,9 +581,6 @@ do_exec_pty(struct ssh *ssh, Session *s, const char *command)
592 break; 581 break;
593 } 582 }
594 583
595#ifdef _UNICOS
596 signal(WJSIGNAL, cray_job_termination_handler);
597#endif /* _UNICOS */
598#ifdef HAVE_CYGWIN 584#ifdef HAVE_CYGWIN
599 cygwin_set_impersonation_token(INVALID_HANDLE_VALUE); 585 cygwin_set_impersonation_token(INVALID_HANDLE_VALUE);
600#endif 586#endif
@@ -1080,11 +1066,6 @@ do_setup_env(struct ssh *ssh, Session *s, const char *shell)
1080 child_set_env(&env, &envsize, "SSH_ORIGINAL_COMMAND", 1066 child_set_env(&env, &envsize, "SSH_ORIGINAL_COMMAND",
1081 original_command); 1067 original_command);
1082 1068
1083#ifdef _UNICOS
1084 if (cray_tmpdir[0] != '\0')
1085 child_set_env(&env, &envsize, "TMPDIR", cray_tmpdir);
1086#endif /* _UNICOS */
1087
1088 /* 1069 /*
1089 * Since we clear KRB5CCNAME at startup, if it's set now then it 1070 * Since we clear KRB5CCNAME at startup, if it's set now then it
1090 * must have been set by a native authentication method (eg AIX or 1071 * must have been set by a native authentication method (eg AIX or
@@ -1485,10 +1466,6 @@ do_child(struct ssh *ssh, Session *s, const char *command)
1485 exit(1); 1466 exit(1);
1486 } 1467 }
1487 1468
1488#ifdef _UNICOS
1489 cray_setup(pw->pw_uid, pw->pw_name, command);
1490#endif /* _UNICOS */
1491
1492 /* 1469 /*
1493 * Login(1) does this as well, and it needs uid 0 for the "-h" 1470 * Login(1) does this as well, and it needs uid 0 for the "-h"
1494 * switch, so we let login(1) to this for us. 1471 * switch, so we let login(1) to this for us.