pad256: quote "$1" in case anyone uses silly names
authorAlan Cox <alan@linux.intel.com>
Mon, 6 Apr 2015 12:16:17 +0000 (13:16 +0100)
committerAlan Cox <alan@linux.intel.com>
Mon, 6 Apr 2015 12:16:17 +0000 (13:16 +0100)
Kernel/tools/pad256

index 6b2fed0..5ef7c26 100755 (executable)
@@ -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
+