aports/main/rsync/dont-use-nobody.patch
ptrcnull ebded73e44 main/rsync: fix chgrp test in rootbld
otherwise, the tests tries to "chgrp nobody" a test file
2025-04-07 10:22:22 +00:00

15 lines
381 B
Diff

rootbld makes all the supplementary groups nobody(65534);
this patch avoids using them in tests
diff --git a/getgroups.c b/getgroups.c
index 8a37ed0..01adfca 100644
--- a/getgroups.c
+++ b/getgroups.c
@@ -48,6 +48,7 @@
#endif
for (i = 0; i < n; i++) {
+ if (list[i] == 65534) continue;
printf("%lu ", (unsigned long)list[i]);
if (list[i] == gid)
gid_in_list = 1;