Package: coreutils
Version: 5.2.1-2
Severity: normal
Tags: patch
When using OpenAFS PAGs, which store information as two fake gids, the
groups program complains that it cannot find names for those ids, and
causes groups to return an error.
[EMAIL PROTECTED]:~$ groups
users id: cannot find name for group ID 34182
34182 id: cannot find name for group ID 45415
45415 dialout cdrom floppy audio video fuse
It seems that these error messages are useless since the information
that it could not find names for those groups is already clear from
them being displayed as numbers. Furthermore, the error message is
confusing, and the nonzero exit status is problematic for things like
pscp from Windows.
Below is a patch to id.c to remove this behaviour.
--- coreutils-5.2.1/src/id.c.orig 2004-01-21 17:27:02.000000000 -0500
+++ coreutils-5.2.1/src/id.c 2006-07-04 18:27:05.000000000 -0400
@@ -230,11 +230,6 @@
if (use_name)
{
grp = getgrgid (gid);
- if (grp == NULL)
- {
- error (0, 0, _("cannot find name for group ID %u"), gid);
- problems = 1;
- }
}
if (grp == NULL)
-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.16.11-grsec
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages coreutils depends on:
ii libacl1 2.2.23-1 Access control list shared library
ii libc6 2.3.6-7 GNU C Library: Shared libraries
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]