version 1.75, 2001/05/03 15:45:15 |
version 1.76, 2001/05/19 00:36:40 |
|
|
int success, type, fd, n_bytes, plen, screen_flag, have_pty = 0; |
int success, type, fd, n_bytes, plen, screen_flag, have_pty = 0; |
int compression_level = 0, enable_compression_after_reply = 0; |
int compression_level = 0, enable_compression_after_reply = 0; |
u_int proto_len, data_len, dlen; |
u_int proto_len, data_len, dlen; |
|
struct stat st; |
|
|
s = session_new(); |
s = session_new(); |
s->pw = authctxt->pw; |
s->pw = authctxt->pw; |
|
|
packet_send_debug("X11 forwarding disabled in server configuration file."); |
packet_send_debug("X11 forwarding disabled in server configuration file."); |
break; |
break; |
} |
} |
if (!options.xauth_location) { |
if (!options.xauth_location || |
|
(stat(options.xauth_location, &st) == -1)) { |
packet_send_debug("No xauth program; cannot forward with spoofing."); |
packet_send_debug("No xauth program; cannot forward with spoofing."); |
break; |
break; |
} |
} |
|
|
session_x11_req(Session *s) |
session_x11_req(Session *s) |
{ |
{ |
int fd; |
int fd; |
|
struct stat st; |
if (no_x11_forwarding_flag) { |
if (no_x11_forwarding_flag) { |
debug("X11 forwarding disabled in user configuration file."); |
debug("X11 forwarding disabled in user configuration file."); |
return 0; |
return 0; |
} |
} |
if (!options.x11_forwarding) { |
if (!options.x11_forwarding) { |
debug("X11 forwarding disabled in server configuration file."); |
debug("X11 forwarding disabled in server configuration file."); |
|
return 0; |
|
} |
|
if (!options.xauth_location || |
|
(stat(options.xauth_location, &st) == -1)) { |
|
packet_send_debug("No xauth program; cannot forward with spoofing."); |
return 0; |
return 0; |
} |
} |
if (xauthfile != NULL) { |
if (xauthfile != NULL) { |