Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Reordered the items inside the file_struct so that alignment padding
[rsync/rsync.git]
/
getgroups.c
diff --git
a/getgroups.c
b/getgroups.c
index
8dfe264
..
8bb82f5
100644
(file)
--- a/
getgroups.c
+++ b/
getgroups.c
@@
-39,10
+39,14
@@
main(UNUSED(int argc), UNUSED(char *argv[]))
gid_t gid = MY_GID();
int gid_in_list = 0;
+#ifdef HAVE_GETGROUPS
if ((n = getgroups(NGROUPS_MAX, list)) < 0) {
perror("getgroups");
return 1;
}
+#else
+ n = 0;
+#endif
for (i = 0; i < n; i++) {
printf("%lu ", (unsigned long)list[i]);