From 1a4b2a2584c12a8a4d3131c8ae378a2cdaa72218 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 9 May 2011 15:32:27 +0200 Subject: [PATCH] Bug fix: SIGSEGV if the path given by iso_image_add_mips_boot_file() does not exist in the image at image production time. --- libisofs/system_area.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index ba81614..38276d2 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -305,9 +305,9 @@ static int boot_nodes_from_iso_path(Ecma119Image *t, char *path, int ret; ret = iso_tree_path_to_node(t->image, path, iso_node); - if (ret < 0) { + if (ret <= 0) { iso_msg_submit(t->image->id, ISO_BOOT_FILE_MISSING, 0, - "Cannot find %s '%s'", purpose, path); + "Cannot find in ISO image: %s '%s'", purpose, path); return ISO_BOOT_FILE_MISSING; } if ((*iso_node)->type != LIBISO_FILE) {