version 1.81, 2001/06/04 23:16:16 |
version 1.82, 2001/06/05 16:46:19 |
|
|
void session_pty_cleanup(Session *s); |
void session_pty_cleanup(Session *s); |
void session_proctitle(Session *s); |
void session_proctitle(Session *s); |
int session_setup_x11fwd(Session *s); |
int session_setup_x11fwd(Session *s); |
|
void session_close(Session *s); |
void do_exec_pty(Session *s, const char *command); |
void do_exec_pty(Session *s, const char *command); |
void do_exec_no_pty(Session *s, const char *command); |
void do_exec_no_pty(Session *s, const char *command); |
void do_login(Session *s, const char *command); |
void do_login(Session *s, const char *command); |
|
|
do_exec_pty(s, command); |
do_exec_pty(s, command); |
else |
else |
do_exec_no_pty(s, command); |
do_exec_no_pty(s, command); |
|
|
if (command != NULL) |
if (command != NULL) |
xfree(command); |
xfree(command); |
|
session_close(s); |
return; |
return; |
|
|
default: |
default: |
|
|
} else { |
} else { |
server_loop(pid, ptyfd, fdout, -1); |
server_loop(pid, ptyfd, fdout, -1); |
/* server_loop _has_ closed ptyfd and fdout. */ |
/* server_loop _has_ closed ptyfd and fdout. */ |
session_pty_cleanup(s); |
|
} |
} |
} |
} |
|
|
|
|
packet_send_debug("No xauth program; cannot forward with spoofing."); |
packet_send_debug("No xauth program; cannot forward with spoofing."); |
return 0; |
return 0; |
} |
} |
if (s->display != NULL) { |
if (s->display != NULL || xauthfile != NULL) { |
debug("X11 display already set."); |
debug("X11 display already set."); |
return 0; |
return 0; |
} |
} |
|
|
void |
void |
do_authenticated2(Authctxt *authctxt) |
do_authenticated2(Authctxt *authctxt) |
{ |
{ |
|
|
server_loop2(); |
server_loop2(); |
} |
} |