diff options
author | runge <runge> | 2006-02-25 05:10:37 +0000 |
---|---|---|
committer | runge <runge> | 2006-02-25 05:10:37 +0000 |
commit | 79310af7e7a289d2baf1bdc295daefdcc76ecc0e (patch) | |
tree | da68674a1beef5ce0ba807187657ca5fe215f68c /x11vnc/user.c | |
parent | b7773ea6e683e5fcfae5bf020828596c5f90b7d3 (diff) | |
download | libtdevnc-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.tar.gz libtdevnc-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.zip |
x11vnc: -unixpw and -stunnel. Add clipboard to input control.
Diffstat (limited to 'x11vnc/user.c')
-rw-r--r-- | x11vnc/user.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/x11vnc/user.c b/x11vnc/user.c index 5269d50..eafbb2f 100644 --- a/x11vnc/user.c +++ b/x11vnc/user.c @@ -5,6 +5,7 @@ #include "cleanup.h" #include "scan.h" #include "screen.h" +#include "unixpw.h" void check_switched_user(void); void lurk_loop(char *str); @@ -44,6 +45,8 @@ void check_switched_user(void) { int delay = 15; time_t now = time(0); + if (unixpw_in_progress) return; + if (started_as_root == 1 && users_list) { try_to_switch_users(); if (started_as_root == 2) { @@ -923,6 +926,8 @@ void check_new_passwds(void) { if (strstr(passwdfile, "read:") != passwdfile) { return; } + if (unixpw_in_progress) return; + now = time(0); if (now > last_check + 1) { if (read_passwds(passwdfile)) { |