diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-01-29 14:23:31 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-05-30 07:58:48 +0200 |
commit | fa454203ef5f60bca221ab6372d4e4f2318c7150 (patch) | |
tree | 6038403e12fb960c1fe586c7f3b56dc08895fec5 /src/basic/user-util.h | |
parent | 50a87d80f49d3f5cb47269a09467f8024ecea36e (diff) |
sysusers: emit a bit more info at debug level when locking fails
This is the first error message when running unprivileged, and the message is
unspecific, so let's at least add some logging at debug level to make this less
confusing.
Diffstat (limited to 'src/basic/user-util.h')
-rw-r--r-- | src/basic/user-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/user-util.h b/src/basic/user-util.h index 348160897..6b2f1af52 100644 --- a/src/basic/user-util.h +++ b/src/basic/user-util.h @@ -71,6 +71,8 @@ int take_etc_passwd_lock(const char *root); #define UID_NOBODY ((uid_t) 65534U) #define GID_NOBODY ((gid_t) 65534U) +#define ETC_PASSWD_LOCK_PATH "/etc/.pwd.lock" + #if 0 /// UNNEEDED by elogind static inline bool uid_is_dynamic(uid_t uid) { return DYNAMIC_UID_MIN <= uid && uid <= DYNAMIC_UID_MAX; |