1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-15 05:57:26 +03:00

user-util: Add ETC_PASSWD_LOCK_NAME

This commit is contained in:
Daan De Meyer 2023-03-09 13:06:45 +01:00
parent ee2975a9d9
commit 8e3eb949a5

View File

@ -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 */