projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee2975a
)
user-util: Add ETC_PASSWD_LOCK_NAME
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Thu, 9 Mar 2023 12:06:45 +0000
(13:06 +0100)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 29 Mar 2023 07:25:38 +0000
(09:25 +0200)
src/basic/user-util.h
patch
|
blob
|
history
diff --git
a/src/basic/user-util.h
b/src/basic/user-util.h
index a08683bceab096bece04de7049ac431b5a0d90e5..c042b67e0aeaa3b625b6aa6ea5ea462cd1828ee4 100644
(file)
--- a/
src/basic/user-util.h
+++ b/
src/basic/user-util.h
@@
-80,7
+80,8
@@
int take_etc_passwd_lock(const char *root);
#define UID_MAPPED_ROOT ((uid_t) (INT32_MAX-1))
#define GID_MAPPED_ROOT ((gid_t) (INT32_MAX-1))
-#define ETC_PASSWD_LOCK_PATH "/etc/.pwd.lock"
+#define ETC_PASSWD_LOCK_NAME ".pwd.lock"
+#define ETC_PASSWD_LOCK_PATH "/etc/" ETC_PASSWD_LOCK_NAME
/* The following macros add 1 when converting things, since UID 0 is a valid UID, while the pointer
* NULL is special */