From 8e3eb949a5a0dde66b6e4ca799937a75b7b646eb Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Thu, 9 Mar 2023 13:06:45 +0100 Subject: [PATCH] user-util: Add ETC_PASSWD_LOCK_NAME --- src/basic/user-util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/basic/user-util.h b/src/basic/user-util.h index a08683bcea..c042b67e0a 100644 --- 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 */ -- 2.25.1