public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88f5c6e
)
pad256: quote "$1" in case anyone uses silly names
author
Alan Cox
<alan@linux.intel.com>
Mon, 6 Apr 2015 12:16:17 +0000
(13:16 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Mon, 6 Apr 2015 12:16:17 +0000
(13:16 +0100)
Kernel/tools/pad256
patch
|
blob
|
history
diff --git
a/Kernel/tools/pad256
b/Kernel/tools/pad256
index
6b2fed0
..
5ef7c26
100755
(executable)
--- a/
Kernel/tools/pad256
+++ b/
Kernel/tools/pad256
@@
-2,6
+2,7
@@
# adds zero padding to a file to get size multiple of 256
-size=$(stat --format=%s
$1
)
+size=$(stat --format=%s
"$1"
)
newsize=$(( (size+255)/256*256 ))
-dd if=/dev/zero of=$1 conv=notrunc oflag=append bs=1 count=$((newsize-size)) status=noxfer
+dd if=/dev/zero of="$1" conv=notrunc oflag=append bs=1 count=$((newsize-size)) status=noxfer
+