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.
release-1.5.4.branch
Vreixo Formoso 15 years ago
parent ccc7b0b58f
commit 1756cf4c92
  1. 1
      libisofs/tree.c

@ -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;

Loading…
Cancel
Save