commit 898c8f8fd003d730d0490c1a5a807e4c11e30f4b from: Omar Polo date: Thu Dec 29 10:35:12 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 - 9bd4acdbfe311b4b5045d0166f795ddbb5c27cbc commit + 898c8f8fd003d730d0490c1a5a807e4c11e30f4b blob - 97731f1e9b245bfea3cec151f3d56b6c81205390 blob + 32ce54f037478054277fa8c9a5df079d8f8aa325 --- gotd/gotd.c +++ gotd/gotd.c @@ -2160,7 +2160,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 "