Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d99b4cc
)
The static last_in value in match_gid() needed to default to -2 so
author
Wayne Davison
<wayned@samba.org>
Sat, 24 Jan 2004 18:36:36 +0000
(18:36 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 24 Jan 2004 18:36:36 +0000
(18:36 +0000)
that we don't accidentally return a GID of 0 when we don't have the
permissions to set it.
uidlist.c
patch
|
blob
|
blame
|
history
diff --git
a/uidlist.c
b/uidlist.c
index
896e16c
..
38c265b
100644
(file)
--- a/
uidlist.c
+++ b/
uidlist.c
@@
-158,7
+158,7
@@
static int is_in_group(gid_t gid)
static gid_t match_gid(gid_t gid)
{
- static gid_t last_in, last_out;
+ static gid_t last_in
= (gid_t) -2
, last_out;
struct idlist *list = gidlist;
if (gid == last_in) return last_out;