commit 3e7c54e1399c45d211f67d16b6a5ea9310e774d3 from: Omar Polo via: Thomas Adam date: Fri Dec 30 14:58:03 2022 UTC gotd: tweak error message if getpwnam fails errno may not be set to something interesting so switch to fatalx, and simplify the error message (knowing the failed function, which is also wrong, doesn't buy much here.) ok jamsek commit - 45b9d1e910429084a1ced2cdd4ef73544fd593b8 commit + 3e7c54e1399c45d211f67d16b6a5ea9310e774d3 blob - 44062c25fc81e392cba9e7f447c60d072203920a blob + 328c832f1e75f9ed3657ae6c2f9e2bca5399679e --- gotd/gotd.c +++ gotd/gotd.c @@ -2159,7 +2159,7 @@ main(int argc, char **argv) pw = getpwnam(gotd.user_name); if (pw == NULL) - fatal("getpwuid: user %s not found", gotd.user_name); + fatalx("user %s not found", gotd.user_name); if (pw->pw_uid == 0) { fatalx("cannot run %s as %s: the user running %s "