aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2003-07-01 19:21:23 +0000
committerhpa <hpa>2003-07-01 19:21:23 +0000
commitc36e416dca19e7d69c9c1c2314668243da66fce4 (patch)
tree8e457222bf62ca6795a2619da3e12c3d9390e225
parent2f6e93a7a1e0908e54a4d42c675ea294a8106be3 (diff)
downloadsyslinux-elf-c36e416dca19e7d69c9c1c2314668243da66fce4.tar.gz
syslinux-elf-c36e416dca19e7d69c9c1c2314668243da66fce4.tar.xz
syslinux-elf-c36e416dca19e7d69c9c1c2314668243da66fce4.zip
Add binmode declaration for mkdiskimage
-rwxr-xr-xmkdiskimage.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/mkdiskimage.in b/mkdiskimage.in
index 522d7172..74ef3f30 100755
--- a/mkdiskimage.in
+++ b/mkdiskimage.in
@@ -59,6 +59,7 @@ $cylsize = $h*$s*512;
sysopen(OUTPUT, $file, O_CREAT|O_RDWR|O_TRUNC, 0666)
or die "$0: Cannot open: $file\n";
+eval { binmode OUTPUT; };
# Print out DOSEMU header, if requested
if ( $opt{'d'} ) {