wok rev 24589

syslinux/iso2exe: fix possible data corruption
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 28 14:35:25 2022 +0000 (2022-02-28)
parents c8515a1a219e
children 05e5d73630a7
files syslinux/stuff/iso2exe/Makefile syslinux/stuff/iso2exe/iso2exe.sh
line diff
     1.1 --- a/syslinux/stuff/iso2exe/Makefile	Mon Feb 28 15:06:59 2022 +0100
     1.2 +++ b/syslinux/stuff/iso2exe/Makefile	Mon Feb 28 14:35:25 2022 +0000
     1.3 @@ -53,5 +53,8 @@
     1.4  	objcopy -O binary $*.o $@
     1.5  	chmod +x $@
     1.6  
     1.7 +%.lst: %bin
     1.8 +	objdump -D -Mintel,i8086 -b binary -m i386 --adjust-vma=0x7C00 $< > $@
     1.9 +
    1.10  clean:
    1.11  	rm -f *.bin *.o *~ 
     2.1 --- a/syslinux/stuff/iso2exe/iso2exe.sh	Mon Feb 28 15:06:59 2022 +0100
     2.2 +++ b/syslinux/stuff/iso2exe/iso2exe.sh	Mon Feb 28 14:35:25 2022 +0000
     2.3 @@ -354,12 +354,12 @@
     2.4  	chown root.root ${@/init/rootfs.gz}
     2.5  	touch -t 197001010100.00 ${@/init/rootfs.gz}
     2.6  	ls -l $@ rootfs.gz
     2.7 -	cp $0 $0.$$
     2.8 +	sed '/^##/d;s|[ \t]*###.*||;/^case/,/^esac/d' $0 > $0.$$
     2.9 +	chmod +x $0.$$
    2.10  	cat >> $0.$$ <<EOM
    2.11  $(tar cf - ${@/init/rootfs.gz} | compress | uuencode -m -)
    2.12  EOT
    2.13  EOM
    2.14 -	sed -i '/^##/d;s|[ \t]*###.*||;/^case/,/^esac/d' $0.$$
    2.15  	mv -f $0.$$ $0; exit ;;
    2.16  --get)
    2.17  	cat $2