summaryrefslogtreecommitdiffstats
path: root/x11vnc/unixpw.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/unixpw.c')
-rw-r--r--x11vnc/unixpw.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/x11vnc/unixpw.c b/x11vnc/unixpw.c
index d7848d7..bb09d60 100644
--- a/x11vnc/unixpw.c
+++ b/x11vnc/unixpw.c
@@ -371,6 +371,10 @@ int su_verify(char *user, char *pass) {
return 0;
}
}
+ if (no_external_cmds) {
+ rfbLog("su_verify: cannot run external commands.\n");
+ clean_up_exit(1);
+ }
#define SU_DEBUG 0
#if SU_DEBUG
@@ -710,6 +714,7 @@ if (db) fprintf(stderr, "unixpw_verify: '%s' '%s'\n", user, db > 1 ? pass : "***
unixpw_accept(user);
return;
} else {
+ rfbLog("unixpw_verify: crypt_verify login for %s failed.\n", user);
usleep(3000*1000);
}
} else {
@@ -717,6 +722,7 @@ if (db) fprintf(stderr, "unixpw_verify: '%s' '%s'\n", user, db > 1 ? pass : "***
unixpw_accept(user);
return;
}
+ rfbLog("unixpw_verify: su_verify login for %s failed.\n", user);
}
if (tries < 2) {