summaryrefslogtreecommitdiff
path: root/src/userdb/userdbctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-05-06 15:46:30 +0200
committerLennart Poettering <lennart@poettering.net>2021-05-07 22:19:07 +0200
commit80d88a8267401387645166c22724e2ad912fade4 (patch)
treebd487e8c109a0a96f4c31d496cf4084de43ffdca /src/userdb/userdbctl.c
parent0cd70d43a36d94b578004dfbf176007de3fd1f8a (diff)
downloadsystemd-80d88a8267401387645166c22724e2ad912fade4.tar.gz
userdb: rename userdb lookup flags a bit
Let's use "exclude" for flags that really exclude records from our lookup. Let's use "avoid" referring to concepts that when flag is set we'll not use but we have a fallback path for that should yield the same result. Let' use "suppress" for suppressing partial info, even if we return the record otherwise. So far we used "avoid" for all these cases, which was confusing. Whiel we are at it, let's reassign the bits a bit, leaving some space for bits follow-up commits are going to add.
Diffstat (limited to 'src/userdb/userdbctl.c')
-rw-r--r--src/userdb/userdbctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c
index e9c6957143..56511eae44 100644
--- a/src/userdb/userdbctl.c
+++ b/src/userdb/userdbctl.c
@@ -717,7 +717,7 @@ static int parse_argv(int argc, char *argv[]) {
break;
case 'N':
- arg_userdb_flags |= USERDB_AVOID_NSS|USERDB_DONT_SYNTHESIZE;
+ arg_userdb_flags |= USERDB_EXCLUDE_NSS|USERDB_DONT_SYNTHESIZE;
break;
case ARG_WITH_NSS:
@@ -725,7 +725,7 @@ static int parse_argv(int argc, char *argv[]) {
if (r < 0)
return r;
- SET_FLAG(arg_userdb_flags, USERDB_AVOID_NSS, !r);
+ SET_FLAG(arg_userdb_flags, USERDB_EXCLUDE_NSS, !r);
break;
case ARG_SYNTHESIZE: