Re: [libvirt] [PATCH 1/7] util: improve user lookup helper

2013-07-25 Thread Cole Robinson
On 07/23/2013 11:03 AM, Eric Blake wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=964358 > > A future patch needs to look up pw_gid; but it is wasteful > to crawl through getpwuid_r twice for two separate pieces > of information, and annoying to copy that much boilerplate > code for doing th

[libvirt] [PATCH 1/7] util: improve user lookup helper

2013-07-23 Thread Eric Blake
https://bugzilla.redhat.com/show_bug.cgi?id=964358 A future patch needs to look up pw_gid; but it is wasteful to crawl through getpwuid_r twice for two separate pieces of information, and annoying to copy that much boilerplate code for doing the crawl. The current internal-only virGetUserEnt is a