Commit 6fe05820 authored by Wayne Davison's avatar Wayne Davison

Use MY_UID() instead of getuid().

parent 670d8abf
......@@ -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");
......
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment