Skip to content
Snippets Groups Projects
Commit e992ab8d authored by Daniel Salzman's avatar Daniel Salzman
Browse files

zone-load: fix access check

parent d77c8f6b
No related branches found
No related tags found
No related merge requests found
......@@ -497,7 +497,7 @@ int knot_zload_open(zloader_t **dst, const char *source, const char *origin,
*dst = NULL;
/* Check zone file. */
if(access(source, F_OK) != -1) {
if (access(source, F_OK | R_OK) != 0) {
return KNOT_EACCES;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment