Safety cap for ABI usage bug towards libisofs >= 0.6.2

This commit is contained in:
Thomas Schmitt 2008-02-25 08:51:00 +00:00
parent 89670f6dda
commit 357ef5519d

View File

@ -140,6 +140,16 @@ LIBBURN_MISCONFIGURATION_ = 0;
} }
iso_lib_version(&major, &minor, &micro); iso_lib_version(&major, &minor, &micro);
sprintf(msg+strlen(msg), "libisofs-%d.%d.%d ", major, minor, micro); sprintf(msg+strlen(msg), "libisofs-%d.%d.%d ", major, minor, micro);
/* ts A80224 */
if(major!=0 || minor!=6 || micro!=2) {
sprintf(msg+strlen(msg),"- MISMATCH -, due to a bug in this libisoburn version: need exactly libisofs-0.6.2 ,\n");
bad_match= 1;
}
/* ts A80224 */
#ifdef NIX
#ifdef iso_lib_header_version_major #ifdef iso_lib_header_version_major
if(iso_lib_is_compatible(iso_lib_header_version_major, if(iso_lib_is_compatible(iso_lib_header_version_major,
iso_lib_header_version_minor, iso_lib_header_version_minor,
@ -164,6 +174,8 @@ LIBBURN_MISCONFIGURATION_ = 0;
} }
#endif /* ! iso_lib_header_version_major */ #endif /* ! iso_lib_header_version_major */
#endif /* NIX */
if(!burn_initialize()) { if(!burn_initialize()) {
sprintf(msg+strlen(msg), "Cannot initialize libburn\n"); sprintf(msg+strlen(msg), "Cannot initialize libburn\n");
return(0); return(0);