summaryrefslogtreecommitdiff
path: root/src/nss-mymachines/nss-mymachines.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nss-mymachines/nss-mymachines.c')
-rw-r--r--src/nss-mymachines/nss-mymachines.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nss-mymachines/nss-mymachines.c b/src/nss-mymachines/nss-mymachines.c
index 6e468853a2..b2f46e3db2 100644
--- a/src/nss-mymachines/nss-mymachines.c
+++ b/src/nss-mymachines/nss-mymachines.c
@@ -1,3 +1,4 @@
+/* SPDX-License-Identifier: LGPL-2.1+ */
/***
This file is part of systemd.
@@ -479,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*) "/";
@@ -556,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*) "/";