From 6fe05820ff8597107d6e57b624f0e8417ba8fc05 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Wed, 4 Feb 2004 17:06:07 +0000 Subject: [PATCH] Use MY_UID() instead of getuid(). --- clientserver.c | 4 ++-- main.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clientserver.c b/clientserver.c index 1b391ec9..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"); diff --git a/main.c b/main.c index 03133cf1..f60ca6c1 100644 --- a/main.c +++ b/main.c @@ -979,7 +979,7 @@ int main(int argc,char *argv[]) #endif /* def MAINTAINER_MODE */ starttime = time(NULL); - am_root = (getuid() == 0); + am_root = (MY_UID() == 0); memset(&stats, 0, sizeof(stats)); -- 2.34.1