From b7a836c0a3524cda8ef79c30c3fe7ea759ae4656 Mon Sep 17 00:00:00 2001 From: ribalba Date: Tue, 4 Mar 2008 18:03:35 +0100 Subject: Work around AFS bug: id and groups would print invalid group number. * src/id.c (main): Call print_group_list with a user name, if possible. * src/groups.c (main): Likewise. * NEWS: Mention this. For details, see http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12852 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12875 Signed-off-by: ribalba --- src/groups.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/groups.c') diff --git a/src/groups.c b/src/groups.c index baac7b931..c8e617b58 100644 --- a/src/groups.c +++ b/src/groups.c @@ -102,7 +102,7 @@ main (int argc, char **argv) egid = getegid (); rgid = getgid (); - if (!print_group_list (NULL, ruid, rgid, egid, true)) + if (!print_group_list (getlogin (), ruid, rgid, egid, true)) ok = false; putchar ('\n'); } -- cgit v1.2.3-54-g00ecf