diff options
author | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2017-10-31 13:32:41 +0000 |
---|---|---|
committer | YASUOKA Masahiko <yasuoka@cvs.openbsd.org> | 2017-10-31 13:32:41 +0000 |
commit | 933175ed4cebcdb147e5603d2ab4937522df8239 (patch) | |
tree | fcf415e799814ae10fb8fcbdfe1aff420cab1c9d /usr.sbin/makefs | |
parent | d0300cc2aa0d32bbb7e88980699d6d4f6b55a1c9 (diff) |
Fix a bug which made the boot entries' order reverse, introduced at 1.8 on
NetBSD.
seem fine deraadt
Diffstat (limited to 'usr.sbin/makefs')
-rw-r--r-- | usr.sbin/makefs/cd9660/cd9660_eltorito.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/makefs/cd9660/cd9660_eltorito.c b/usr.sbin/makefs/cd9660/cd9660_eltorito.c index 0fa3091c2da..7686ac4bd8a 100644 --- a/usr.sbin/makefs/cd9660/cd9660_eltorito.c +++ b/usr.sbin/makefs/cd9660/cd9660_eltorito.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_eltorito.c,v 1.10 2017/10/31 13:29:42 yasuoka Exp $ */ +/* $OpenBSD: cd9660_eltorito.c,v 1.11 2017/10/31 13:32:40 yasuoka Exp $ */ /* $NetBSD: cd9660_eltorito.c,v 1.20 2013/01/28 21:03:28 christos Exp $ */ /* @@ -155,11 +155,12 @@ cd9660_add_boot_disk(iso9660_disk *diskStructure, const char *boot_info) break; } - if (tmp_image == NULL) { + if (tmp_image == NULL) TAILQ_INSERT_HEAD(&diskStructure->boot_images, new_image, image_list); - } else - TAILQ_INSERT_BEFORE(tmp_image, new_image, image_list); + else + TAILQ_INSERT_AFTER(&diskStructure->boot_images, tmp_image, + new_image, image_list); new_image->serialno = diskStructure->image_serialno++; |