summaryrefslogtreecommitdiff
path: root/src/nss-systemd/nss-systemd.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-12-04 17:06:56 +0100
committerLennart Poettering <lennart@poettering.net>2017-12-06 13:40:50 +0100
commit3a664727fa95e9683da33770e88aaaa1a3183cc6 (patch)
tree0920799bbc99e374624ce8a8426156b60a177b12 /src/nss-systemd/nss-systemd.c
parent834382779304c6f8b1994dcafaa748d798f533b6 (diff)
downloadsystemd-3a664727fa95e9683da33770e88aaaa1a3183cc6.tar.gz
user-util: add UID_NOBODY defines that resolve to (uid_t) 65534
We use it all over the place, let's add a #define for it. Makes things easier greppable, and more explanatory I think.
Diffstat (limited to 'src/nss-systemd/nss-systemd.c')
-rw-r--r--src/nss-systemd/nss-systemd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nss-systemd/nss-systemd.c b/src/nss-systemd/nss-systemd.c
index 1852cf41cb..cd6479573b 100644
--- a/src/nss-systemd/nss-systemd.c
+++ b/src/nss-systemd/nss-systemd.c
@@ -47,8 +47,8 @@ static const struct passwd root_passwd = {
static const struct passwd nobody_passwd = {
.pw_name = (char*) NOBODY_USER_NAME,
.pw_passwd = (char*) "*", /* locked */
- .pw_uid = 65534,
- .pw_gid = 65534,
+ .pw_uid = UID_NOBODY,
+ .pw_gid = GID_NOBODY,
.pw_gecos = (char*) "User Nobody",
.pw_dir = (char*) "/",
.pw_shell = (char*) "/sbin/nologin",
@@ -63,7 +63,7 @@ static const struct group root_group = {
static const struct group nobody_group = {
.gr_name = (char*) NOBODY_GROUP_NAME,
- .gr_gid = 65534,
+ .gr_gid = GID_NOBODY,
.gr_passwd = (char*) "*", /* locked */
.gr_mem = (char*[]) { NULL },
};