mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 17:45:07 -05:00
main: improve error message for failed getpwnam()
This commit is contained in:
2
main.c
2
main.c
@@ -556,7 +556,7 @@ int main
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((pw = getpwnam(user)) == NULL)
|
if ((pw = getpwnam(user)) == NULL)
|
||||||
LOG_FATAL("Could not get %s uid/gid", user);
|
LOG_FATAL("Could not get user/group ID of %s", user);
|
||||||
|
|
||||||
/* Create all directories before dropping root */
|
/* Create all directories before dropping root */
|
||||||
CNF_CreateDirs(pw->pw_uid, pw->pw_gid);
|
CNF_CreateDirs(pw->pw_uid, pw->pw_gid);
|
||||||
|
|||||||
Reference in New Issue
Block a user