diff options
author | djm@openbsd.org <djm@openbsd.org> | 2014-12-22 07:55:51 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2014-12-22 19:08:12 +1100 |
commit | 161cf419f412446635013ac49e8c660cadc36080 (patch) | |
tree | 849be0516d697c2bad7277ed780144a84602d86f /session.c | |
parent | f69b69b8625be447b8826b21d87713874dac25a6 (diff) |
upstream commit
make internal handling of filename arguments of "none"
more consistent with ssh. "none" arguments are now replaced with NULL when
the configuration is finalised.
Simplifies checking later on (just need to test not-NULL rather than
that + strcmp) and cleans up some inconsistencies. ok markus@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: session.c,v 1.274 2014/07/15 15:54:14 millert Exp $ */ | 1 | /* $OpenBSD: session.c,v 1.275 2014/12/22 07:55:51 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 3 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
4 | * All rights reserved | 4 | * All rights reserved |
@@ -2648,7 +2648,7 @@ session_setup_x11fwd(Session *s) | |||
2648 | debug("X11 forwarding disabled in server configuration file."); | 2648 | debug("X11 forwarding disabled in server configuration file."); |
2649 | return 0; | 2649 | return 0; |
2650 | } | 2650 | } |
2651 | if (!options.xauth_location || | 2651 | if (options.xauth_location == NULL || |
2652 | (stat(options.xauth_location, &st) == -1)) { | 2652 | (stat(options.xauth_location, &st) == -1)) { |
2653 | packet_send_debug("No xauth program; cannot forward with spoofing."); | 2653 | packet_send_debug("No xauth program; cannot forward with spoofing."); |
2654 | return 0; | 2654 | return 0; |