From 3b511fcdc685acb8f0bb3431cc1e39784dcf6a66 Mon Sep 17 00:00:00 2001 From: hpa Date: Thu, 30 Dec 2004 23:41:01 +0000 Subject: [PATCH] Handle autosizing on real files --- mkdiskimage.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkdiskimage.in b/mkdiskimage.in index c3034da..edcb500 100755 --- a/mkdiskimage.in +++ b/mkdiskimage.in @@ -82,7 +82,7 @@ if ( $c == 0 ) { $is_open = 1; if ( (@filestat = stat(OUTPUT)) && S_ISREG($filestat[2]) ) { - $len = $filestat[7]; + $len = $filestat[7] >> 9; } elsif ( $is_linux && S_ISBLK($filestat[2]) ) { $blksize = pack("L!", 0); if ( ioctl(OUTPUT, $BLKGETSIZE, $blksize) == 0 ) { -- 2.7.4