version 1.162, 2003/08/28 12:54:34 |
version 1.163, 2003/08/31 13:29:05 |
|
|
|
|
session_proctitle(s); |
session_proctitle(s); |
|
|
#ifdef GSSAPI |
|
temporarily_use_uid(s->pw); |
|
ssh_gssapi_storecreds(); |
|
restore_uid(); |
|
#endif |
|
|
|
/* Fork the child. */ |
/* Fork the child. */ |
if ((pid = fork()) == 0) { |
if ((pid = fork()) == 0) { |
fatal_remove_all_cleanups(); |
fatal_remove_all_cleanups(); |
|
|
ptyfd = s->ptyfd; |
ptyfd = s->ptyfd; |
ttyfd = s->ttyfd; |
ttyfd = s->ttyfd; |
|
|
#ifdef GSSAPI |
|
temporarily_use_uid(s->pw); |
|
ssh_gssapi_storecreds(); |
|
restore_uid(); |
|
#endif |
|
|
|
/* Fork the child. */ |
/* Fork the child. */ |
if ((pid = fork()) == 0) { |
if ((pid = fork()) == 0) { |
fatal_remove_all_cleanups(); |
fatal_remove_all_cleanups(); |
|
|
command = forced_command; |
command = forced_command; |
debug("Forced command '%.900s'", command); |
debug("Forced command '%.900s'", command); |
} |
} |
|
|
|
#ifdef GSSAPI |
|
if (options.gss_authentication) { |
|
temporarily_use_uid(s->pw); |
|
ssh_gssapi_storecreds(); |
|
restore_uid(); |
|
} |
|
#endif |
|
|
if (s->ttyfd != -1) |
if (s->ttyfd != -1) |
do_exec_pty(s, command); |
do_exec_pty(s, command); |