summaryrefslogtreecommitdiff
path: root/src/basic/user-util.h
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.h
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.h')
-rw-r--r--src/basic/user-util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/user-util.h b/src/basic/user-util.h
index a18f4d6f1a..b6de0e4234 100644
--- a/src/basic/user-util.h
+++ b/src/basic/user-util.h
@@ -26,9 +26,9 @@ char* getlogname_malloc(void);
char* getusername_malloc(void);
typedef enum UserCredsFlags {
- USER_CREDS_SYNTHESIZE_FALLBACK = 1 << 0, /* if set, only synthesize user records if database lacks them. Normally we bypass the userdb entirely for the records we can synthesize */
- USER_CREDS_ALLOW_MISSING = 1 << 1, /* if a numeric UID string is resolved, be OK if there's no record for it */
- USER_CREDS_CLEAN = 1 << 2, /* try to clean up shell and home fields with invalid data */
+ USER_CREDS_PREFER_NSS = 1 << 0, /* if set, only synthesize user records if database lacks them. Normally we bypass the userdb entirely for the records we can synthesize */
+ USER_CREDS_ALLOW_MISSING = 1 << 1, /* if a numeric UID string is resolved, be OK if there's no record for it */
+ USER_CREDS_CLEAN = 1 << 2, /* try to clean up shell and home fields with invalid data */
} UserCredsFlags;
int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home, const char **shell, UserCredsFlags flags);