X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/05b7bab8e1d97d300ad43accd9857d611c63a673..9352b0649b8d6aa21d9d567c1d819a0fa26c7b01:/clientserver.c diff --git a/clientserver.c b/clientserver.c index a2bbfe87..468553c4 100644 --- a/clientserver.c +++ b/clientserver.c @@ -266,7 +266,7 @@ static int rsync_module(int f_in, int f_out, int i) module_id = i; - am_root = (getuid() == 0); + am_root = (MY_UID() == 0); if (am_root) { p = lp_uid(i); @@ -383,7 +383,7 @@ static int rsync_module(int f_in, int f_out, int i) return -1; } - am_root = (getuid() == 0); + am_root = (MY_UID() == 0); } io_printf(f_out, "@RSYNCD: OK\n"); @@ -457,7 +457,8 @@ static int rsync_module(int f_in, int f_out, int i) #ifndef DEBUG /* don't allow the logs to be flooded too fast */ - if (verbose > 1) verbose = 1; + if (verbose > lp_max_verbosity()) + verbose = lp_max_verbosity(); #endif if (protocol_version < 23) {