From 357ef5519dddb3475a2a4b86be29bf17ffb2cc75 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Mon, 25 Feb 2008 08:51:00 +0000 Subject: [PATCH] Safety cap for ABI usage bug towards libisofs >= 0.6.2 --- .../branches/ZeroOneZero-pl01/libisoburn/burn_wrap.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libisoburn/branches/ZeroOneZero-pl01/libisoburn/burn_wrap.c b/libisoburn/branches/ZeroOneZero-pl01/libisoburn/burn_wrap.c index cad68e1f..7122073a 100644 --- a/libisoburn/branches/ZeroOneZero-pl01/libisoburn/burn_wrap.c +++ b/libisoburn/branches/ZeroOneZero-pl01/libisoburn/burn_wrap.c @@ -140,6 +140,16 @@ LIBBURN_MISCONFIGURATION_ = 0; } iso_lib_version(&major, &minor, µ); 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 if(iso_lib_is_compatible(iso_lib_header_version_major, iso_lib_header_version_minor, @@ -164,6 +174,8 @@ LIBBURN_MISCONFIGURATION_ = 0; } #endif /* ! iso_lib_header_version_major */ +#endif /* NIX */ + if(!burn_initialize()) { sprintf(msg+strlen(msg), "Cannot initialize libburn\n"); return(0);