diff options
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1366,13 +1366,13 @@ do_child(const char *command, struct passwd * pw, const char *term, | |||
1366 | "Running %.100s add %.100s %.100s %.100s\n", | 1366 | "Running %.100s add %.100s %.100s %.100s\n", |
1367 | options.xauth_location, display, | 1367 | options.xauth_location, display, |
1368 | auth_proto, auth_data); | 1368 | auth_proto, auth_data); |
1369 | #ifndef HAVE_CYGWIN /* Unix sockets are not supported */ | 1369 | #ifndef NO_X11_UNIX_SOCKETS |
1370 | if (screen != NULL) | 1370 | if (screen != NULL) |
1371 | fprintf(stderr, | 1371 | fprintf(stderr, |
1372 | "Adding %.*s/unix%s %s %s\n", | 1372 | "Adding %.*s/unix%s %s %s\n", |
1373 | (int)(screen-display), display, | 1373 | (int)(screen-display), display, |
1374 | screen, auth_proto, auth_data); | 1374 | screen, auth_proto, auth_data); |
1375 | #endif | 1375 | #endif /* NO_X11_UNIX_SOCKETS */ |
1376 | } | 1376 | } |
1377 | snprintf(cmd, sizeof cmd, "%s -q -", | 1377 | snprintf(cmd, sizeof cmd, "%s -q -", |
1378 | options.xauth_location); | 1378 | options.xauth_location); |
@@ -1380,12 +1380,12 @@ do_child(const char *command, struct passwd * pw, const char *term, | |||
1380 | if (f) { | 1380 | if (f) { |
1381 | fprintf(f, "add %s %s %s\n", display, | 1381 | fprintf(f, "add %s %s %s\n", display, |
1382 | auth_proto, auth_data); | 1382 | auth_proto, auth_data); |
1383 | #ifndef HAVE_CYGWIN /* Unix sockets are not supported */ | 1383 | #ifndef NO_X11_UNIX_SOCKETS |
1384 | if (screen != NULL) | 1384 | if (screen != NULL) |
1385 | fprintf(f, "add %.*s/unix%s %s %s\n", | 1385 | fprintf(f, "add %.*s/unix%s %s %s\n", |
1386 | (int)(screen-display), display, | 1386 | (int)(screen-display), display, |
1387 | screen, auth_proto, auth_data); | 1387 | screen, auth_proto, auth_data); |
1388 | #endif | 1388 | #endif /* NO_X11_UNIX_SOCKETS */ |
1389 | pclose(f); | 1389 | pclose(f); |
1390 | } else { | 1390 | } else { |
1391 | fprintf(stderr, "Could not run %s\n", | 1391 | fprintf(stderr, "Could not run %s\n", |