aboutsummaryrefslogtreecommitdiffstats
path: root/uidlist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-02-04 17:05:44 +0000
committerWayne Davison <wayned@samba.org>2004-02-04 17:05:44 +0000
commit670d8abf801d534578751876c796ef893ec2075a (patch)
tree8e7ef7fa9c8d04820d1e1b81e690c567b9295313 /uidlist.c
parentb2bffbb2ca73c65175d6ceb4303a59ccc38c0307 (diff)
downloadandroid_external_rsync-670d8abf801d534578751876c796ef893ec2075a.tar.gz
android_external_rsync-670d8abf801d534578751876c796ef893ec2075a.tar.bz2
android_external_rsync-670d8abf801d534578751876c796ef893ec2075a.zip
Use MY_GID() instead of getgid().
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 930a01a7..170b9e62 100644
--- a/uidlist.c
+++ b/uidlist.c
@@ -126,7 +126,7 @@ static int is_in_group(gid_t gid)
if (gid == last_in)
return last_out;
if (ngroups < -1) {
- gid_t mygid = getgid();
+ gid_t mygid = MY_GID();
ngroups = getgroups(0, 0);
/* If that didn't work, perhaps 0 isn't treated specially? */
if (ngroups <= 0)
@@ -165,7 +165,7 @@ static int is_in_group(gid_t gid)
#else
static gid_t mygid = GID_NONE;
if (mygid == GID_NONE) {
- mygid = getgid();
+ mygid = MY_GID();
if (verbose > 3)
rprintf(FINFO, "process has gid %ld\n", (long)mygid);
}