mirror of
https://github.com/slicer69/doas
synced 2024-10-15 12:13:08 +00:00
Fixed potential crash on Linux when target user is not
one of the valid users listed in doas.conf.
This commit is contained in:
parent
1c2858c681
commit
7007ce8ebd
5
doas.c
5
doas.c
|
@ -76,7 +76,10 @@ usage(void)
|
||||||
void
|
void
|
||||||
errc(int eval, int code, const char *format)
|
errc(int eval, int code, const char *format)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s", format);
|
if (format)
|
||||||
|
fprintf(stderr, "%s", format);
|
||||||
|
else
|
||||||
|
fprintf(stderr, "doas: Permission error encountered. Your user may not have access to perform this action.\n");
|
||||||
exit(code);
|
exit(code);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue