version 1.35, 2015/08/12 15:59:53 |
version 1.36, 2015/08/13 16:27:22 |
|
|
struct stat sb; |
struct stat sb; |
|
|
yyfp = fopen(filename, "r"); |
yyfp = fopen(filename, "r"); |
if (!yyfp) { |
if (!yyfp) |
if (checkperms) |
err(1, checkperms ? "doas is not enabled, %s" : |
warn("doas is not enabled, %s", filename); |
"could not open config file %s", filename); |
else |
|
warn("could not open config file %s", filename); |
|
exit(1); |
|
} |
|
|
|
if (checkperms) { |
if (checkperms) { |
if (fstat(fileno(yyfp), &sb) != 0) |
if (fstat(fileno(yyfp), &sb) != 0) |