summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authormouring <mouring>2001-06-21 03:14:49 +0000
committermouring <mouring>2001-06-21 03:14:49 +0000
commitf091438c8f271e6d5c51a9c9bffbba5dca69530c (patch)
tree8b1822865f4a0bdb5d32f809ac517e27a7f4e340 /session.c
parentd64c59b72bc0c028119e37f877ca3e206e19a5cb (diff)
downloadopenssh-f091438c8f271e6d5c51a9c9bffbba5dca69530c.tar.gz
- markus@cvs.openbsd.org 2001/06/19 14:09:45
[session.c sshd.8] disable x11-fwd if use_login is enabled; from lukem@wasabisystems.com
Diffstat (limited to 'session.c')
-rw-r--r--session.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/session.c b/session.c
index 005f7ab1..187f38ed 100644
--- a/session.c
+++ b/session.c
@@ -33,7 +33,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: session.c,v 1.90 2001/06/19 12:34:09 markus Exp $");
+RCSID("$OpenBSD: session.c,v 1.91 2001/06/19 14:09:45 markus Exp $");
#include "ssh.h"
#include "ssh1.h"
@@ -1980,6 +1980,11 @@ session_setup_x11fwd(Session *s)
packet_send_debug("No xauth program; cannot forward with spoofing.");
return 0;
}
+ if (options.use_login) {
+ packet_send_debug("X11 forwarding disabled; "
+ "not compatible with UseLogin=yes.");
+ return 0;
+ }
if (s->display != NULL) {
debug("X11 display already set.");
return 0;