]> code.delx.au - pulseaudio/commit
core: check return value of getgrnam_r() instead of errno
authorLennart Poettering <lennart@poettering.net>
Wed, 19 Aug 2009 22:20:03 +0000 (00:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Aug 2009 22:20:03 +0000 (00:20 +0200)
commitc5bd72509ecae1c12bb523fa56432fd71428fbf1
tree42f32a2c64d667030e5472af13953e7a7b8d5280
parentf4f16ab10d31e61f1ca8867c2dad9874025637f8
core: check return value of getgrnam_r() instead of errno

According to POSIX getgrnam_r() returns the error code as return value,
and not in errno. Honour that.

Pointed out and inspired by a patch from Ted Percival.
src/pulsecore/core-util.c