diff options
author | runge <runge@karlrunge.com> | 2010-05-08 19:53:33 -0400 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2010-05-08 19:53:33 -0400 |
commit | a3c971bac6e99ac7c025f0ec22c04720f1946aca (patch) | |
tree | 69708b7b8fd9df73b02558cb95bd6c8d41a2aa05 /x11vnc/unixpw.c | |
parent | bcc2383c79c7598e8d9dab858ae3a6dc2a68aab6 (diff) | |
download | libtdevnc-a3c971bac6e99ac7c025f0ec22c04720f1946aca.tar.gz libtdevnc-a3c971bac6e99ac7c025f0ec22c04720f1946aca.zip |
x11vnc: tweaks to prepare_x11vnc_dist.sh. set cd->unixname in apply_opts().
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r-- | x11vnc/unixpw.c | 7 |
1 files changed, 4 insertions, 3 deletions
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. */ |