summaryrefslogtreecommitdiff
path: root/src/groups.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-23 11:45:38 +0200
committerJim Meyering <meyering@redhat.com>2008-04-23 15:29:11 +0200
commit0a4a938b6bf60903475d85cad399f874f8afe51c (patch)
tree67f42c2a030114e44b7961c4c68bc9f277f4987f /src/groups.c
parentd9c1b8fd30a36d7f05cfb8f830dc62765cf60792 (diff)
downloadcoreutils-0a4a938b6bf60903475d85cad399f874f8afe51c.tar.xz
id: do print the AFS-specific nameless group ID (called a PAG)
In 6.11, we mistakenly suppressed the printing of certain group IDs, thinking they were useless AFS-specific artifacts. This change reverts that, so now they are printed once again. http://thread.gmane.org/gmane.org.fsf.announce/867/focus=13345 This also reverts the bug-fix that applied solely to the new code used to avoid printing those IDs Revert "id bug fix: don't point to potentially clobbered static storage" This reverts commit f7d1c59c224f81a8bab5fa2afcaf815988f50467. Revert "Work around AFS bug: id and groups would print invalid group number." This reverts commit b7a836c0a3524cda8ef79c30c3fe7ea759ae4656. Revert "* src/c99-to-c89.diff: Accommodate a C99-ism in id.c." This reverts commit d44893c5dba4150b4ded9cf6aad316c1ef620c9f.
Diffstat (limited to 'src/groups.c')
-rw-r--r--src/groups.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/groups.c b/src/groups.c
index c8e617b58..baac7b931 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 (getlogin (), ruid, rgid, egid, true))
+ if (!print_group_list (NULL, ruid, rgid, egid, true))
ok = false;
putchar ('\n');
}