mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
userdb: two small fixes (#36115)
This commit is contained in:
@@ -853,6 +853,7 @@ int userdb_iterator_get(UserDBIterator *iterator, UserRecord **ret) {
|
||||
/* If NSS isn't covered elsewhere, let's iterate through it first, since it probably contains
|
||||
* the more traditional sources, which are probably good to show first. */
|
||||
|
||||
errno = 0;
|
||||
pw = getpwent();
|
||||
if (pw) {
|
||||
_cleanup_free_ char *buffer = NULL;
|
||||
|
||||
@@ -1227,7 +1227,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
{ "chain", no_argument, NULL, ARG_CHAIN },
|
||||
{ "uid-min", required_argument, NULL, ARG_UID_MIN },
|
||||
{ "uid-max", required_argument, NULL, ARG_UID_MAX },
|
||||
{ "fuzzy", required_argument, NULL, 'z' },
|
||||
{ "fuzzy", no_argument, NULL, 'z' },
|
||||
{ "disposition", required_argument, NULL, ARG_DISPOSITION },
|
||||
{ "boundaries", required_argument, NULL, ARG_BOUNDARIES },
|
||||
{}
|
||||
|
||||
Reference in New Issue
Block a user