]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: return a non-zero return code when 'nobody' user doesn't exist
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 6 May 2019 08:48:12 +0000 (10:48 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 6 May 2019 13:13:07 +0000 (15:13 +0200)
commit6ab668337e28ed8e594b0a9ce0b31f2afe3506d8
treed5d9a51aaf46f21fc66d3855ff84305b66a0384f
parentc26f3b1c86d7bd6cacbb219a2092aa113f217b36
test: return a non-zero return code when 'nobody' user doesn't exist

Lookup of a non-existing user using getpwnam() is not considered
an error, thus the `errno` is not set appropriately, causing
unexpected fails on systems, where 'nobody' user doesn't exist by
default
src/test/test-capability.c