summaryrefslogtreecommitdiffstats
path: root/src/nss-mymachines
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-mymachines
parentnss-systemd: tweak checks when we consult PID 1 for dynamic UID/GID lookups (diff)
downloadsystemd-3a664727fa95e9683da33770e88aaaa1a3183cc6.tar.xz
systemd-3a664727fa95e9683da33770e88aaaa1a3183cc6.zip
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-mymachines')
-rw-r--r--src/nss-mymachines/nss-mymachines.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c
index ddad109eee..b2f46e3db2 100644
--- a/src/nss-mymachines/nss-mymachines.c
+++ b/src/nss-mymachines/nss-mymachines.c
@@ -480,7 +480,7 @@ enum nss_status _nss_mymachines_getpwnam_r(
pwd->pw_name = buffer;
pwd->pw_uid = mapped;
- pwd->pw_gid = 65534; /* nobody */
+ pwd->pw_gid = GID_NOBODY;
pwd->pw_gecos = buffer;
pwd->pw_passwd = (char*) "*"; /* locked */
pwd->pw_dir = (char*) "/";
@@ -557,7 +557,7 @@ enum nss_status _nss_mymachines_getpwuid_r(
pwd->pw_name = buffer;
pwd->pw_uid = uid;
- pwd->pw_gid = 65534; /* nobody */
+ pwd->pw_gid = GID_NOBODY;
pwd->pw_gecos = buffer;
pwd->pw_passwd = (char*) "*"; /* locked */
pwd->pw_dir = (char*) "/";