summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-10-01 00:42:48 +1100
committerDamien Miller <djm@mindrot.org>2000-10-01 00:42:48 +1100
commit05dd7950f9b05db92e138d3ddb0bdec7636000e2 (patch)
tree9d1951d1504a350314416195f27f87b8196114cc /session.c
parent87f43ff889dba4377ea7f9052884b17e334089a2 (diff)
- (djm) Cygwin fixes from Corinna Vinschen <vinschen@cygnus.com>
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/session.c b/session.c
index d0172a369..446385892 100644
--- a/session.c
+++ b/session.c
@@ -1327,11 +1327,13 @@ do_child(const char *command, struct passwd * pw, const char *term,
1327 "Running %.100s add %.100s %.100s %.100s\n", 1327 "Running %.100s add %.100s %.100s %.100s\n",
1328 options.xauth_location, display, 1328 options.xauth_location, display,
1329 auth_proto, auth_data); 1329 auth_proto, auth_data);
1330#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
1330 if (screen != NULL) 1331 if (screen != NULL)
1331 fprintf(stderr, 1332 fprintf(stderr,
1332 "Adding %.*s/unix%s %s %s\n", 1333 "Adding %.*s/unix%s %s %s\n",
1333 (int)(screen-display), display, 1334 (int)(screen-display), display,
1334 screen, auth_proto, auth_data); 1335 screen, auth_proto, auth_data);
1336#endif
1335 } 1337 }
1336 snprintf(cmd, sizeof cmd, "%s -q -", 1338 snprintf(cmd, sizeof cmd, "%s -q -",
1337 options.xauth_location); 1339 options.xauth_location);
@@ -1339,10 +1341,12 @@ do_child(const char *command, struct passwd * pw, const char *term,
1339 if (f) { 1341 if (f) {
1340 fprintf(f, "add %s %s %s\n", display, 1342 fprintf(f, "add %s %s %s\n", display,
1341 auth_proto, auth_data); 1343 auth_proto, auth_data);
1344#ifndef HAVE_CYGWIN /* Unix sockets are not supported */
1342 if (screen != NULL) 1345 if (screen != NULL)
1343 fprintf(f, "add %.*s/unix%s %s %s\n", 1346 fprintf(f, "add %.*s/unix%s %s %s\n",
1344 (int)(screen-display), display, 1347 (int)(screen-display), display,
1345 screen, auth_proto, auth_data); 1348 screen, auth_proto, auth_data);
1349#endif
1346 pclose(f); 1350 pclose(f);
1347 } else { 1351 } else {
1348 fprintf(stderr, "Could not run %s\n", 1352 fprintf(stderr, "Could not run %s\n",