summaryrefslogtreecommitdiff
path: root/src/basic/user-util.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-20 16:06:41 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2018-08-20 16:06:41 +0200
commit43ad3ad7ea3dfc93d91e8bc3a47a03596705c93c (patch)
tree7f60ccdffa581d6a13ddbb3083a16408ea1bc735 /src/basic/user-util.c
parentfafff8f1ffdf24517921d7779c2a9eb89766df30 (diff)
downloadsystemd-43ad3ad7ea3dfc93d91e8bc3a47a03596705c93c.tar.gz
systemd-43ad3ad7ea3dfc93d91e8bc3a47a03596705c93c.tar.bz2
systemd-43ad3ad7ea3dfc93d91e8bc3a47a03596705c93c.zip
Rename USER_CREDS_SYNTHESIZE_FALLBACK to …_PREFER_NSS
Diffstat (limited to 'src/basic/user-util.c')
-rw-r--r--src/basic/user-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/user-util.c b/src/basic/user-util.c
index b6185597de..d410c9068b 100644
--- a/src/basic/user-util.c
+++ b/src/basic/user-util.c
@@ -168,14 +168,14 @@ int get_user_creds(
assert(username);
assert(*username);
- if (!FLAGS_SET(flags, USER_CREDS_SYNTHESIZE_FALLBACK) ||
+ if (!FLAGS_SET(flags, USER_CREDS_PREFER_NSS) ||
(!home && !shell)) {
/* So here's the deal: normally, we'll try to synthesize all records we can synthesize, and override
- * the user database with that. However, if the user specifies USER_CREDS_SYNTHESIZE_FALLBACK then the
+ * the user database with that. However, if the user specifies USER_CREDS_PREFER_NSS then the
* user database will override the synthetic records instead — except if the user is only interested in
* the UID and/or GID (but not the home directory, or the shell), in which case we'll always override
- * the user database (i.e. the USER_CREDS_SYNTHESIZE_FALLBACK flag has no effect in this case). Why?
+ * the user database (i.e. the USER_CREDS_PREFER_NSS flag has no effect in this case). Why?
* Simply because there are valid usecase where the user might change the home directory or the shell
* of the relevant users, but changing the UID/GID mappings for them is something we explicitly don't
* support. */
@@ -215,7 +215,7 @@ int get_user_creds(
r = errno > 0 ? -errno : -ESRCH;
/* If the user requested that we only synthesize as fallback, do so now */
- if (FLAGS_SET(flags, USER_CREDS_SYNTHESIZE_FALLBACK)) {
+ if (FLAGS_SET(flags, USER_CREDS_PREFER_NSS)) {
if (synthesize_user_creds(username, uid, gid, home, shell, flags) >= 0)
return 0;
}