summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/test/test-capability.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test-capability.c b/src/test/test-capability.c
index 6b2de66bb7..f9fae84dde 100644
--- a/src/test/test-capability.c
+++ b/src/test/test-capability.c
@@ -99,7 +99,7 @@ static int setup_tests(bool *run_ambient) {
nobody = getpwnam(NOBODY_USER_NAME);
if (!nobody)
- return log_error_errno(errno, "Could not find nobody user: %m");
+ return log_error_errno(SYNTHETIC_ERRNO(ENOENT), "Could not find nobody user: %m");
test_uid = nobody->pw_uid;
test_gid = nobody->pw_gid;