Commit Diff
- Commit:
898c8f8fd003d730d0490c1a5a807e4c11e30f4b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- 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
- Actions:
- Patch | Tree
--- 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 "