From a3c971bac6e99ac7c025f0ec22c04720f1946aca Mon Sep 17 00:00:00 2001 From: runge Date: Sat, 8 May 2010 19:53:33 -0400 Subject: x11vnc: tweaks to prepare_x11vnc_dist.sh. set cd->unixname in apply_opts(). --- x11vnc/unixpw.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'x11vnc/unixpw.c') diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c index 946e371..90c2e06 100644 --- a/x11vnc/unixpw.c +++ b/x11vnc/unixpw.c @@ -2005,9 +2005,6 @@ static void apply_opts (char *user) { ClientData *cd; int i, notmode = 0; - if (! unixpw_list) { - return; - } if (! unixpw_client) { rfbLog("apply_opts: unixpw_client is NULL\n"); clean_up_exit(1); @@ -2024,8 +2021,12 @@ static void apply_opts (char *user) { free(cd->unixname); } cd->unixname = strdup(user); + rfbLog("apply_opts: set unixname to: %s\n", cd->unixname); } + if (! unixpw_list) { + return; + } str = strdup(unixpw_list); /* apply any per-user options. */ -- cgit v1.2.3