]> granicus.if.org Git - shadow/commit
newgrp: avoid unnecessary group lookups
authorTomas Mraz <tmraz@fedoraproject.org>
Mon, 14 Aug 2017 09:38:46 +0000 (11:38 +0200)
committerTomas Mraz <tmraz@fedoraproject.org>
Mon, 14 Aug 2017 09:38:46 +0000 (11:38 +0200)
commit33f1f69e9c92076bfb81bd6bb29c3127eebdfdb1
tree8fb81958628cbcf73eafe1f0edcee45137953b91
parentfb04f2723a48ff3f59a4c48a641d185403bd3135
newgrp: avoid unnecessary group lookups

In case a system uses remote identity server (LDAP) the group lookup
can be very slow. We avoid it when we already know the user has the
group membership.
src/newgrp.c