tree-wide: use new RET_NERRNO() helper at various places
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
ef470ffa23
commit
7c248223eb
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user