diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-14 22:40:49 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-11-16 08:04:09 +0100 |
commit | 7c248223ebafb9bfde9af978cd1ccfc57dcced26 (patch) | |
tree | 228bcda6699a2ae88ad01fd1f5f024f2b5d7b0a0 /src/sysusers/sysusers.c | |
parent | macro: add new helper RET_NERRNO() (diff) | |
download | systemd-7c248223ebafb9bfde9af978cd1ccfc57dcced26.tar.xz systemd-7c248223ebafb9bfde9af978cd1ccfc57dcced26.zip |
tree-wide: use new RET_NERRNO() helper at various places
Diffstat (limited to 'src/sysusers/sysusers.c')
-rw-r--r-- | src/sysusers/sysusers.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 0e60f2c00f..0011ff4770 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -958,10 +958,7 @@ static int root_stat(const char *p, struct stat *st) { const char *fix; fix = prefix_roota(arg_root, p); - if (stat(fix, st) < 0) - return -errno; - - return 0; + return RET_NERRNO(stat(fix, st)); } static int read_id_from_file(Item *i, uid_t *_uid, gid_t *_gid) { |