~ubuntu-branches/ubuntu/lucid/coreutils/lucid-updates

« back to all changes in this revision

Viewing changes to debian/patches/72_id_checkngroups

  • Committer: Bazaar Package Importer
  • Author(s): Michael Stone
  • Date: 2008-04-04 10:02:18 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080404100218-oybn36tsggyco6x9
* [76] Add ubuntu/upstream patch to prevent failure of cp of a special
  (e.g., fifo) file to an existing file
* [71] change getgrouplist patch to skip the autoconf test and use
  getgrouplist unconditionally. (Patch isn't immediately ready for 
  upstream anyway, and I assume that glibc provides this function
  on all our supported platforms. If this turns out to not be true,
  I'll revisit.) (Closes: #459615)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- coreutils-6.10/src/id.c.orig        2008-01-28 20:14:06.147283549 -0500
 
2
+++ coreutils-6.10/src/id.c     2008-01-28 20:27:39.523284910 -0500
 
3
@@ -370,6 +370,10 @@
 
4
        ok = false;
 
5
        return;
 
6
       }
 
7
+    else if (sysconf(_SC_NGROUPS_MAX) > 0 && n_groups > sysconf(_SC_NGROUPS_MAX))
 
8
+      {
 
9
+        fprintf (stderr, _("Warning: user %s is in more groups than system's configured maximum.\n"), (username != NULL)?username:"");
 
10
+      }
 
11
 
 
12
     if (n_groups > 0)
 
13
       fputs (_(" groups="), stdout);