Skip to content

Commit

Permalink
use errx instead of fprintf(stderr)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed Aug 4, 2021
1 parent 8d22406 commit 35c3e69
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions doas.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,11 +249,8 @@ parseconfdir(const char *dirpath, int checkperms)

free(dirent_table);

if (!m) {
fprintf(stderr, "doas is not enabled, %s: no matching configuration files found\n",
dirpath);
exit(1);
}
if (!m)
errx(1, "doas is not enabled, %s: no matching configuration files found\n", dirpath);
}
#endif

Expand Down

0 comments on commit 35c3e69

Please sign in to comment.