Commit 3f1bc248 authored by Petri Hintukainen's avatar Petri Hintukainen

Fix opendir() when trying to open valid file as directory

parent 4a829216
......@@ -1048,6 +1048,9 @@ static int _find_file(udfread *udf, const char *path,
} else if (token) {
udf_log("_find_file: entry %s not found (parent is file, not directory)\n", token);
goto error;
} else {
// found a file, make sure we won't return directory data
current_dir = NULL;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment