Page MenuHomeFreeBSD

D39869.diff
No OneTemporary

D39869.diff

diff --git a/usr.bin/etdump/etdump.c b/usr.bin/etdump/etdump.c
--- a/usr.bin/etdump/etdump.c
+++ b/usr.bin/etdump/etdump.c
@@ -167,9 +167,8 @@
bvd = (boot_volume_descriptor *)buffer;
if (memcmp(bvd->identifier, ISO_VOLUME_DESCRIPTOR_STANDARD_ID, 5) != 0)
warnx("%s: not a valid ISO", filename);
- if (bvd->boot_record_indicator[0] != ISO_VOLUME_DESCRIPTOR_BOOT)
- warnx("%s: not an El Torito bootable ISO", filename);
- if (memcmp(bvd->boot_system_identifier, ET_ID, 23) != 0)
+ if (bvd->boot_record_indicator[0] != ISO_VOLUME_DESCRIPTOR_BOOT ||
+ memcmp(bvd->boot_system_identifier, ET_ID, 23) != 0)
warnx("%s: not an El Torito bootable ISO", filename);
boot_catalog = isonum_731(bvd->boot_catalog_pointer);

File Metadata

Mime Type
text/plain
Expires
Wed, Feb 5, 5:16 PM (19 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16477843
Default Alt Text
D39869.diff (729 B)

Event Timeline