From 6282bbc0bcd778f0bfc61dbbbdd5b2eed3e7deab Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Thu, 29 Jun 2017 23:06:07 +0200 Subject: [PATCH] Bug fix: Bit 15 of iso_write_opts_set_system_area did not work with generic MBR --- libisofs/system_area.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/system_area.c b/libisofs/system_area.c index 7a853d4..8e4681b 100644 --- a/libisofs/system_area.c +++ b/libisofs/system_area.c @@ -2128,7 +2128,7 @@ int iso_write_system_area(Ecma119Image *t, uint8_t *buf) if (sa_type == 0 && ( (t->system_area_options & 3) || (t->system_area_options & (1 << 14)) || - (((t->system_area_options >> 2) & 0x3f) == 2 && + (((t->system_area_options >> 10) & 15) != 1 && (t->system_area_options & (1 << 15))) )) { /* This is an MBR which shall have a bootable/active flag