diff 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()) { |