mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
- markus@cvs.openbsd.org 2001/06/05 16:46:19
[session.c] let session_close() delete the pty. deny x11fwd if xauthfile is set.
This commit is contained in:
parent
df4981bc31
commit
cb3929d1d9
@ -53,6 +53,9 @@
|
|||||||
[channels.c]
|
[channels.c]
|
||||||
don't delete the auth socket in channel_stop_listening()
|
don't delete the auth socket in channel_stop_listening()
|
||||||
auth_sock_cleanup_proc() will take care of this.
|
auth_sock_cleanup_proc() will take care of this.
|
||||||
|
- markus@cvs.openbsd.org 2001/06/05 16:46:19
|
||||||
|
[session.c]
|
||||||
|
let session_close() delete the pty. deny x11fwd if xauthfile is set.
|
||||||
|
|
||||||
20010606
|
20010606
|
||||||
- OpenBSD CVS Sync
|
- OpenBSD CVS Sync
|
||||||
@ -5564,4 +5567,4 @@
|
|||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1262 2001/06/09 01:32:29 mouring Exp $
|
$Id: ChangeLog,v 1.1263 2001/06/09 01:34:15 mouring Exp $
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: session.c,v 1.81 2001/06/04 23:16:16 markus Exp $");
|
RCSID("$OpenBSD: session.c,v 1.82 2001/06/05 16:46:19 markus Exp $");
|
||||||
|
|
||||||
#include "ssh.h"
|
#include "ssh.h"
|
||||||
#include "ssh1.h"
|
#include "ssh1.h"
|
||||||
@ -124,6 +124,7 @@ void session_set_fds(Session *s, int fdin, int fdout, int fderr);
|
|||||||
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);
|
||||||
@ -413,9 +414,9 @@ do_authenticated1(Authctxt *authctxt)
|
|||||||
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:
|
||||||
@ -658,7 +659,6 @@ do_exec_pty(Session *s, const char *command)
|
|||||||
} 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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2047,7 +2047,7 @@ session_setup_x11fwd(Session *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;
|
||||||
}
|
}
|
||||||
@ -2079,6 +2079,5 @@ session_setup_x11fwd(Session *s)
|
|||||||
void
|
void
|
||||||
do_authenticated2(Authctxt *authctxt)
|
do_authenticated2(Authctxt *authctxt)
|
||||||
{
|
{
|
||||||
|
|
||||||
server_loop2();
|
server_loop2();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user