From 7a3e236390501c14b9d75d80ea88f8a3e69a337a Mon Sep 17 00:00:00 2001 From: runge Date: Fri, 9 Jun 2006 22:36:41 +0000 Subject: x11vnc: make -display WAIT + -unixpw work on Solaris. --- x11vnc/unixpw.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'x11vnc/unixpw.c') diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c index 4bca127..fae74a5 100644 --- a/x11vnc/unixpw.c +++ b/x11vnc/unixpw.c @@ -546,7 +546,13 @@ if (db) fprintf(stderr, "slave is: %s fd=%d\n", slave, fd); /* synchronize with parent: */ write(2, "C", 1); - execlp(bin_su, bin_su, user, "-c", bin_true, (char *) NULL); + if (cmd) { + execlp(bin_su, bin_su, "-", user, "-c", + bin_true, (char *) NULL); + } else { + execlp(bin_su, bin_su, user, "-c", + bin_true, (char *) NULL); + } exit(1); } /* parent */ -- cgit v1.2.3