Removed obsolete macro Libisofs_with_aaiP_retro and its unsuitable

code branches.
"AAIP_0100" gets issued if macro Libisofs_aaip_1_0 is defined.
This commit is contained in:
Thomas Schmitt 2009-02-14 12:10:02 +01:00
parent 0ada61b15e
commit e45f41fb44
2 changed files with 19 additions and 29 deletions

View File

@ -1353,16 +1353,12 @@ int iso_file_source_new_ifs(IsoImageFilesystem *fs, IsoFileSource *parent,
#endif /* Libisofs_with_aaiP */ #endif /* Libisofs_with_aaiP */
} else {
#ifdef Libisofs_with_aaiP_retro
/* ts A90112 : this message is inflationary */ /* ts A90112 : this message is inflationary */
/*
} else {
ret = iso_msg_submit(fsdata->msgid, ISO_SUSP_UNHANDLED, 0, ret = iso_msg_submit(fsdata->msgid, ISO_SUSP_UNHANDLED, 0,
"Unhandled SUSP entry %c%c.", sue->sig[0], sue->sig[1]); "Unhandled SUSP entry %c%c.", sue->sig[0], sue->sig[1]);
#else */
;
#endif
} }
} }
@ -1963,22 +1959,6 @@ int read_root_susp_entries(_ImageFsData *data, uint32_t block)
continue; continue;
if (SUSP_SIG(sue, 'E', 'R')) { if (SUSP_SIG(sue, 'E', 'R')) {
#ifdef Libisofs_with_aaiP_retro
/* ts A90113 : this warning is not appropriate any more */
if (data->rr_version) {
ret = iso_msg_submit(data->msgid, ISO_SUSP_MULTIPLE_ER, 0,
"More than one ER has found. This is not supported. "
"It will be ignored, but can cause problems. "
"Please notify us about this.");
if (ret < 0) {
break;
}
}
#endif /* ! Libisofs_with_aaiP_retro */
/* /*
* it seems that Rock Ridge can be identified with any * it seems that Rock Ridge can be identified with any
* of the following * of the following
@ -1999,13 +1979,11 @@ int read_root_susp_entries(_ImageFsData *data, uint32_t block)
"Suitable Rock Ridge ER found. Version 1.12."); "Suitable Rock Ridge ER found. Version 1.12.");
data->rr_version = RR_EXT_112; data->rr_version = RR_EXT_112;
#ifndef Libisofs_with_aaiP_retro
/* ts A90113 : tolerate AAIP ER even if not supported */
} else if (sue->data.ER.len_id[0] == 9 && } else if (sue->data.ER.len_id[0] == 9 &&
(strncmp((char*)sue->data.ER.ext_id, "AAIP_0002", 9) == 0 || (strncmp((char*)sue->data.ER.ext_id, "AAIP_0002", 9) == 0 ||
strncmp((char*)sue->data.ER.ext_id, "AAIP_0100", 9) == 0)) { strncmp((char*)sue->data.ER.ext_id, "AAIP_0100", 9) == 0)) {
/* ts A90113 : tolerate AAIP ER even if not supported */
iso_msg_debug(data->msgid, iso_msg_debug(data->msgid,
"Suitable AAIP ER found."); "Suitable AAIP ER found.");
@ -2026,11 +2004,9 @@ int read_root_susp_entries(_ImageFsData *data, uint32_t block)
#endif /* ! Libisofs_with_aaiP */ #endif /* ! Libisofs_with_aaiP */
#endif /* ! Libisofs_with_aaiP_retro */
} else { } else {
ret = iso_msg_submit(data->msgid, ISO_SUSP_MULTIPLE_ER, 0, ret = iso_msg_submit(data->msgid, ISO_SUSP_MULTIPLE_ER, 0,
"Non-Rock-Ridge ER found.\n" "Unknown Extension Signature found in ER.\n"
"It will be ignored, but can cause problems in " "It will be ignored, but can cause problems in "
"image reading. Please notify us about this."); "image reading. Please notify us about this.");
if (ret < 0) { if (ret < 0) {

View File

@ -646,10 +646,24 @@ int aaip_add_ER(Ecma119Image *t, struct susp_info *susp, int flag)
AA[5] = 81; AA[5] = 81;
AA[6] = 62; AA[6] = 62;
AA[7] = 1; AA[7] = 1;
#define Libisofs_aaip_1_0 yes
#ifdef Libisofs_aaip_1_0
memcpy(AA + 8, "AAIP_0100", 9);
memcpy(AA + 17,
"AA PROVIDES VIA AAIP 1.0 SUPPORT FOR ARBITRARY FILE ATTRIBUTES"
" IN ISO 9660 IMAGES", 81);
#else /* Libisofs_aaip_1_0 */
memcpy(AA + 8, "AAIP_0002", 9); memcpy(AA + 8, "AAIP_0002", 9);
memcpy(AA + 17, memcpy(AA + 17,
"AA PROVIDES VIA AAIP 0.2 SUPPORT FOR ARBITRARY FILE ATTRIBUTES" "AA PROVIDES VIA AAIP 0.2 SUPPORT FOR ARBITRARY FILE ATTRIBUTES"
" IN ISO 9660 IMAGES", 81); " IN ISO 9660 IMAGES", 81);
#endif /* ! Libisofs_aaip_1_0 */
memcpy(AA + 98, memcpy(AA + 98,
"PLEASE CONTACT THE LIBBURNIA PROJECT VIA LIBBURNIA-PROJECT.ORG", "PLEASE CONTACT THE LIBBURNIA PROJECT VIA LIBBURNIA-PROJECT.ORG",
62); 62);