aboutsummaryrefslogtreecommitdiffstats
path: root/uidlist.c
diff options
context:
space:
mode:
authorJ.W. Schultz <jw@samba.org>2004-01-03 13:17:32 +0000
committerJ.W. Schultz <jw@samba.org>2004-01-03 13:17:32 +0000
commita60e2dca6b475e41882d9070c90079dfedf6b5bc (patch)
treefeb1da38ca3a44700a8635f49357140b474b3b08 /uidlist.c
parent86c4601e129054aa1c3f7b9192e98a955c94679e (diff)
downloadandroid_external_rsync-a60e2dca6b475e41882d9070c90079dfedf6b5bc.tar.gz
android_external_rsync-a60e2dca6b475e41882d9070c90079dfedf6b5bc.tar.bz2
android_external_rsync-a60e2dca6b475e41882d9070c90079dfedf6b5bc.zip
Create GID_NONE for use gid test readability.
Diffstat (limited to 'uidlist.c')
-rw-r--r--uidlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/uidlist.c b/uidlist.c
index 02d551d0..5027e78f 100644
--- a/uidlist.c
+++ b/uidlist.c
@@ -160,7 +160,7 @@ static gid_t match_gid(gid_t gid)
if (am_root)
last_out = gid;
else
- last_out = (gid_t)-1;
+ last_out = GID_NONE;
return last_out;
}
@@ -307,7 +307,7 @@ void recv_uid_list(int f, struct file_list *flist)
}
list->id2 = map_gid(id, name);
if (!am_root && !is_in_group(list->id2))
- list->id2 = (gid_t)-1;
+ list->id2 = GID_NONE;
free(name);
}
}