summaryrefslogtreecommitdiffstats
path: root/x11vnc/remote.c
diff options
context:
space:
mode:
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()) {