diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-07-06 00:00:36 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-07-06 00:05:46 -0700 |
commit | 59cb358fda0e5281bcd89f23cc24bc54bb517567 (patch) | |
tree | 46e6a76f88a5343f4392a8439fa6a72cc961c420 /main.c | |
parent | bb16db1747e1119e3cbdbcee6d47ecd68def66cc (diff) | |
download | rsync-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |