diff options
author | runge <runge> | 2006-07-04 16:09:22 +0000 |
---|---|---|
committer | runge <runge> | 2006-07-04 16:09:22 +0000 |
commit | a7726a6f970f49c2bedac4926aa30de18d96ae41 (patch) | |
tree | 79c23911a3acba751461bcdc3db5d6b59364a433 /x11vnc/remote.c | |
parent | 9992160105b0433484bca804d62eb672aff113de (diff) | |
download | libtdevnc-a7726a6f970f49c2bedac4926aa30de18d96ae41.tar.gz libtdevnc-a7726a6f970f49c2bedac4926aa30de18d96ae41.zip |
x11vnc: more -unixpw work. add -license, etc. options
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index ae5361f..78148fd 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -23,6 +23,7 @@ #include "userinput.h" #include "keyboard.h" #include "selection.h" +#include "unixpw.h" int send_remote_cmd(char *cmd, int query, int wait); int do_remote_query(char *remote_cmd, char *query_cmd, int remote_sync, @@ -633,6 +634,10 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog("remote commands disabled: %s\n", cmd); return NULL; } + if (unixpw_in_progress) { + rfbLog("skip remote command: %s unixpw_in_progress.\n", cmd); + return NULL; + } if (!query_default && priv_remote) { if (! remote_control_access_ok()) { |