diff options
Diffstat (limited to 'x11vnc/remote.c')
-rw-r--r-- | x11vnc/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index 03016d6..775816c 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -498,11 +498,11 @@ static void reset_rfbport(int old, int new) { * libXau yet. */ int remote_control_access_ok(void) { - struct stat sbuf; - #if NO_X11 return 0; #else + struct stat sbuf; + if (client_connect_file) { if (stat(client_connect_file, &sbuf) == 0) { if (sbuf.st_mode & S_IWOTH) { |