can_user_push.c: simplify code
authorKyle J. McKay <mackyle@gmail.com>
Sun, 25 Aug 2013 04:15:40 +0000 (21:15 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 25 Aug 2013 04:15:40 +0000 (21:15 -0700)
commit5fea41abc1755f824b24c2affcbe3eda8bb54afc
treeaaf864b90b87147d4c8e5d6d708144202f87c540
parent1997a2d19506e2070fddf5b07e604d629cf01da3
can_user_push.c: simplify code

Replace the getgrent/endgrent loop with a single getgrnam call.

There's no need to enumerate all group entries when a single call
to getgrnam will do the same job.
src/can_user_push.c