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:
Vreixo Formoso 2008-05-26 10:46:28 +02:00
parent ccc7b0b58f
commit 1756cf4c92

View File

@ -938,6 +938,7 @@ int iso_tree_path_to_node(IsoImage *image, const char *path, IsoNode **node)
while (component) {
if (n->type != LIBISO_DIR) {
n = NULL;
result = 0;
break;
}
dir = (IsoDir *)n;