diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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", |