summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-07-06 00:00:36 -0700
committerWayne Davison <wayne@opencoder.net>2020-07-06 00:05:46 -0700
commit59cb358fda0e5281bcd89f23cc24bc54bb517567 (patch)
tree46e6a76f88a5343f4392a8439fa6a72cc961c420 /main.c
parentbb16db1747e1119e3cbdbcee6d47ecd68def66cc (diff)
downloadrsync-59cb358fda0e5281bcd89f23cc24bc54bb517567.tar.gz
More TANDEM changes
- Handle a non-0 root uid. - Handle alternate major/minor/MAKEDEV funcs. - Other misc compatibility tweaks.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index c832d575..ad30c86f 100644
--- a/main.c
+++ b/main.c
@@ -299,7 +299,7 @@ static void become_copy_as_user()
our_uid = MY_UID();
our_gid = MY_GID();
- am_root = (our_uid == 0);
+ am_root = (our_uid == ROOT_UID);
if (gname)
gname[-1] = ':';
@@ -1667,7 +1667,7 @@ int main(int argc,char *argv[])
starttime = time(NULL);
our_uid = MY_UID();
our_gid = MY_GID();
- am_root = our_uid == 0;
+ am_root = our_uid == ROOT_UID;
memset(&stats, 0, sizeof(stats));