From 1756cf4c92c7794cfee8e4723c4bd66b68cd68cf Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Mon, 26 May 2008 10:46:28 +0200 Subject: [PATCH] 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. --- libisofs/tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libisofs/tree.c b/libisofs/tree.c index 8daf7f6..d1c6feb 100644 --- a/libisofs/tree.c +++ b/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;