On Wed, Aug 24, 2011 at 4:40 AM, Jan Safranek <jsafr...@redhat.com> wrote: > Signed-off-by: Jan Safranek <jsafr...@redhat.com>
Acked-by: Dhaval Giani <dhaval.gi...@gmail.com> > --- > > tests/setuid.c | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > > diff --git a/tests/setuid.c b/tests/setuid.c > index c824511..02916e4 100644 > --- a/tests/setuid.c > +++ b/tests/setuid.c > @@ -43,6 +43,12 @@ int main(int argc, char *argv[]) > } > > pwd = getpwnam(argv[1]); > + if (!pwd) { > + fprintf(stderr, "getpwnam() failed: %s\n", > + strerror(errno)); > + ret = -errno; > + goto finished; > + } > uid = pwd->pw_uid; > fprintf(stdout, "Setting UID to %s (%d).\n", pwd->pw_name, uid); > if ((ret = setuid(uid))) { > > > ------------------------------------------------------------------------------ > EMC VNX: the world's simplest storage, starting under $10K > The only unified storage solution that offers unified management > Up to 160% more powerful than alternatives and 25% more efficient. > Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev > _______________________________________________ > Libcg-devel mailing list > Libcg-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libcg-devel > ------------------------------------------------------------------------------ EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel