summaryrefslogtreecommitdiffstats
path: root/debian/patches/72_id_checkngroups.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/72_id_checkngroups.patch')
-rw-r--r--debian/patches/72_id_checkngroups.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/72_id_checkngroups.patch b/debian/patches/72_id_checkngroups.patch
new file mode 100644
index 0000000..a2e0bec
--- /dev/null
+++ b/debian/patches/72_id_checkngroups.patch
@@ -0,0 +1,17 @@
+Author:
+Description:
+Index: coreutils-8.24/src/id.c
+===================================================================
+--- coreutils-8.24.orig/src/id.c
++++ coreutils-8.24/src/id.c
+@@ -416,6 +416,10 @@ print_full_info (const char *username)
+ ok = false;
+ return;
+ }
++ else if (sysconf(_SC_NGROUPS_MAX) > 0 && n_groups > sysconf(_SC_NGROUPS_MAX))
++ {
++ fprintf (stderr, _("Warning: user %s is in more groups than system's configured maximum.\n"), (username != NULL)?username:"");
++ }
+
+ if (n_groups > 0)
+ fputs (_(" groups="), stdout);