Your message dated Fri, 04 Apr 2008 14:47:09 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#459615: fixed in coreutils 6.10-6
has caused the Debian Bug report #459615,
regarding coreutils: id <username> doesn't show the user's supplementary groups 
when using hesiod
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
459615: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=459615
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: coreutils
Version: 5.97-5.7
Severity: normal
Tags: patch

When you run id <username> it calls a built in function called getugroup which 
in turn uses getgrent.             
The getgrent function is not supported by nss hesiod which of course means id 
doesn't return the supplementary    
groups the user belongs to.                                                     
                                  
Instead getgrouplist should be used, this is a known issue, but since the 
getgrouplist function didn't work well  
with glibc 2.3.2 the change was reverted. Submitted is a patch for getugroup to 
use getgrouplist if present.      
This might also solve the > 32 groups bug though I haven't tested it. 

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.23.11mos-2 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages coreutils depends on:
ii  libacl1                      2.2.45-1    Access control list shared library
ii  libc6                        2.7-5       GNU C Library: Shared libraries
ii  libselinux1                  2.0.15-2+b1 SELinux shared libraries

coreutils recommends no packages.

-- no debconf information
diff -ru coreutils-5.97/configure.ac coreutils-5.97huji/configure.ac
--- coreutils-5.97/configure.ac	2006-05-23 23:38:46.000000000 +0300
+++ coreutils-5.97huji/configure.ac	2008-01-07 16:50:59.000000000 +0200
@@ -114,6 +114,8 @@
   done
 fi
 
+AC_CHECK_FUNCS(getgrouplist)
+
 AC_CACHE_CHECK([for 3-argument setpriority function],
   [utils_cv_func_setpriority],
   [AC_LINK_IFELSE(
diff -ru coreutils-5.97/lib/getugroups.c coreutils-5.97huji/lib/getugroups.c
--- coreutils-5.97/lib/getugroups.c	2005-09-22 09:05:39.000000000 +0300
+++ coreutils-5.97huji/lib/getugroups.c	2008-01-07 16:52:14.000000000 +0200
@@ -54,6 +54,10 @@
 int
 getugroups (int maxcount, GETGROUPS_T *grouplist, char *username, gid_t gid)
 {
+#ifdef HAVE_GETGROUPLIST
+    getgrouplist(username, gid, grouplist, &maxcount);
+    return maxcount;
+#else
   struct group *grp;
   register char **cp;
   register int count = 0;
@@ -104,4 +108,5 @@
   endgrent ();
 
   return count;
+#endif
 }


--- End Message ---
--- Begin Message ---
Source: coreutils
Source-Version: 6.10-6

We believe that the bug you reported is fixed in the latest version of
coreutils, which is due to be installed in the Debian FTP archive:

coreutils_6.10-6.diff.gz
  to pool/main/c/coreutils/coreutils_6.10-6.diff.gz
coreutils_6.10-6.dsc
  to pool/main/c/coreutils/coreutils_6.10-6.dsc
coreutils_6.10-6_i386.deb
  to pool/main/c/coreutils/coreutils_6.10-6_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Stone <[EMAIL PROTECTED]> (supplier of updated coreutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 04 Apr 2008 10:02:18 -0400
Source: coreutils
Binary: coreutils
Architecture: source i386
Version: 6.10-6
Distribution: unstable
Urgency: low
Maintainer: Michael Stone <[EMAIL PROTECTED]>
Changed-By: Michael Stone <[EMAIL PROTECTED]>
Description: 
 coreutils  - The GNU core utilities
Closes: 459615
Changes: 
 coreutils (6.10-6) unstable; urgency=low
 .
   * [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)
Files: 
 b876f38fae21235321e70e7438f4281b 858 utils required coreutils_6.10-6.dsc
 01339618481bf577301475f19a4fa5cd 5803 utils required coreutils_6.10-6.diff.gz
 652e3e98e0ed1d7273324e91eb87d8c9 3750520 utils required 
coreutils_6.10-6_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQCVAwUBR/Y5xw0hVr09l8FJAQL+oQP8CNLvpu462NRgoQzN2e7cTItrjr3yLq9H
9I9J9HRs0te070upOE9KdoJoAf0Cj7rF8aMvZpQ94wTfMEi6cIeGOTRDyQB5DEum
d3hm6WVg5LTCfZbyXqRH4WJxeOzZtx5ubrbSmje0ywr9L0ffDTUG2cNvxyWifxs/
HSYUApYuwgE=
=3yDH
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to