diff options
author | mouring <mouring> | 2001-06-21 03:14:49 +0000 |
---|---|---|
committer | mouring <mouring> | 2001-06-21 03:14:49 +0000 |
commit | f091438c8f271e6d5c51a9c9bffbba5dca69530c (patch) | |
tree | 8b1822865f4a0bdb5d32f809ac517e27a7f4e340 /session.c | |
parent | d64c59b72bc0c028119e37f877ca3e206e19a5cb (diff) | |
download | openssh-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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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; |