summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-02-24 00:55:04 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-02-24 00:55:04 +0000
commit38e60935bbece7ca891bf9264366c26d7a42414e (patch)
treeae4cd7626fefeacc689004b87bf4c780a540244b /session.c
parent803f16cbe4acdcfaf21e87c5f655c63b85f8d1a3 (diff)
- (bal) Generalize lack of UNIX sockets since this also effects Cray
not just Cygwin. Based on patch by Wendy Palm <wendyp@cray.com>
Diffstat (limited to 'session.c')
-rw-r--r--session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/session.c b/session.c
index 01442aa9..3434aafc 100644
--- a/session.c
+++ b/session.c
@@ -1366,13 +1366,13 @@ do_child(const char *command, struct passwd * pw, const char *term,
"Running %.100s add %.100s %.100s %.100s\n",
options.xauth_location, display,
auth_proto, auth_data);
-#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
+#ifndef NO_X11_UNIX_SOCKETS
if (screen != NULL)
fprintf(stderr,
"Adding %.*s/unix%s %s %s\n",
(int)(screen-display), display,
screen, auth_proto, auth_data);
-#endif
+#endif /* NO_X11_UNIX_SOCKETS */
}
snprintf(cmd, sizeof cmd, "%s -q -",
options.xauth_location);
@@ -1380,12 +1380,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
if (f) {
fprintf(f, "add %s %s %s\n", display,
auth_proto, auth_data);
-#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
+#ifndef NO_X11_UNIX_SOCKETS
if (screen != NULL)
fprintf(f, "add %.*s/unix%s %s %s\n",
(int)(screen-display), display,
screen, auth_proto, auth_data);
-#endif
+#endif /* NO_X11_UNIX_SOCKETS */
pclose(f);
} else {
fprintf(stderr, "Could not run %s\n",