diff options
author | Wayne Davison <wayne@opencoder.net> | 2022-08-01 08:29:15 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2022-08-01 08:29:15 -0700 |
commit | e37bfdb445fc3ec500699fcee7c4ef8608938171 (patch) | |
tree | abbec386de358383d42fc6bcf5a063d41ba03de2 /uidlist.c | |
parent | 3d7015afa223494e3318495c2f5de9cb49229da9 (diff) | |
download | rsync-e37bfdb445fc3ec500699fcee7c4ef8608938171.tar.gz |
Make sure sign is consistend in 2 gid comparisons.
Diffstat (limited to 'uidlist.c')
-rw-r--r-- | uidlist.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -210,7 +210,7 @@ static int is_in_group(gid_t gid) ngroups = getgroups(ngroups, gidset); /* The default gid might not be in the list on some systems. */ for (n = 0; n < ngroups; n++) { - if (gidset[n] == our_gid) + if ((gid_t)gidset[n] == our_gid) break; } if (n == ngroups) @@ -229,7 +229,7 @@ static int is_in_group(gid_t gid) last_in = gid; for (n = 0; n < ngroups; n++) { - if (gidset[n] == gid) + if ((gid_t)gidset[n] == gid) return last_out = 1; } return last_out = 0; |