utils: avoid redundant set/endpwent around getpwuid
authorRobert Bragg <robert@linux.intel.com>
Wed, 17 Apr 2013 08:35:50 +0000 (04:35 -0400)
committerColin Walters <walters@verbum.org>
Wed, 17 Apr 2013 08:36:24 +0000 (04:36 -0400)
commitc70b4978598a3b4e3d712e89cacf21b5369ed53e
tree1f1a8e4c881c6919c4618c720c0bdbfec0fade8a
parentd171e833478dcb067a543082ff69c237c97c6fe4
utils: avoid redundant set/endpwent around getpwuid

set/endpwent are only required for iterating through passwd entries
using getpwent(). Since we are explicitly requesting a passwd entry
for a uid then the set/endpwent calls are redundant.

Removing these redundant calls is required for building on Android
since their C library doesn't implement these.

https://bugzilla.gnome.org/show_bug.cgi?id=645881
glib/gutils.c