mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
userdb: make userdb_all() always set iterator when it returns >= 0
Fixes #14868.
This commit is contained in:
parent
1ad448673e
commit
662d74daf7
@ -700,12 +700,8 @@ int userdb_all(UserDBFlags flags, UserDBIterator **ret) {
|
|||||||
setpwent();
|
setpwent();
|
||||||
iterator->nss_iterating = true;
|
iterator->nss_iterating = true;
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
} else if (r < 0)
|
||||||
|
return r;
|
||||||
if (!FLAGS_SET(flags, USERDB_DONT_SYNTHESIZE))
|
|
||||||
goto finish;
|
|
||||||
|
|
||||||
return r;
|
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
*ret = TAKE_PTR(iterator);
|
*ret = TAKE_PTR(iterator);
|
||||||
|
Loading…
Reference in New Issue
Block a user