summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-04 16:09:22 +0000
committerrunge <runge>2006-07-04 16:09:22 +0000
commita7726a6f970f49c2bedac4926aa30de18d96ae41 (patch)
tree79c23911a3acba751461bcdc3db5d6b59364a433 /x11vnc/remote.c
parent9992160105b0433484bca804d62eb672aff113de (diff)
downloadlibtdevnc-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.c5
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()) {