Fix a bug in iso_tree_path_to_node().
With paths where the last directory component is an existing non-directory in the ISO image and the leafname is any name it incorrectly returns 1 (node found). Bug reported by Thomas Schmitt.
This commit is contained in:
parent
ccc7b0b58f
commit
1756cf4c92
@ -938,6 +938,7 @@ int iso_tree_path_to_node(IsoImage *image, const char *path, IsoNode **node)
|
|||||||
while (component) {
|
while (component) {
|
||||||
if (n->type != LIBISO_DIR) {
|
if (n->type != LIBISO_DIR) {
|
||||||
n = NULL;
|
n = NULL;
|
||||||
|
result = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dir = (IsoDir *)n;
|
dir = (IsoDir *)n;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user