From c57a5196a3afeeb75389303647afd32a6a422326 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Wed, 16 Jan 2008 22:09:29 +0100 Subject: [PATCH] Prevent HINT when found SP and ER entries in "." entry of root node. --- src/fs_image.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/fs_image.c b/src/fs_image.c index 9d0b2a8..c3bff96 100644 --- a/src/fs_image.c +++ b/src/fs_image.c @@ -871,6 +871,30 @@ int iso_file_source_new_ifs(IsoImageFilesystem *fs, IsoFileSource *parent, } else if (SUSP_SIG(sue, 'R', 'R')) { /* TODO I've seen this RR on mkisofs images. what's this? */ continue; + } else if (SUSP_SIG(sue, 'S', 'P')) { + /* + * Ignore this, to prevent the hint message, if we are dealing + * with root node (SP is only valid in "." of root node) + */ + if (parent != NULL) { + /* notify and continue */ + iso_msg_sorry(fsdata->messenger, LIBISO_RR_ERROR, + "SP entry found in a directory entry other " + "than '.' entry of root node"); + } + continue; + } else if (SUSP_SIG(sue, 'E', 'R')) { + /* + * Ignore this, to prevent the hint message, if we are dealing + * with root node (ER is only valid in "." of root node) + */ + if (parent != NULL) { + /* notify and continue */ + iso_msg_sorry(fsdata->messenger, LIBISO_RR_ERROR, + "ER entry found in a directory entry other " + "than '.' entry of root node"); + } + continue; } else { iso_msg_hint(fsdata->messenger, LIBISO_SUSP_UNHANLED, "Unhandled SUSP entry %c%c.", sue->sig[0], sue->sig[1]);