summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/rpm2cpio.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/rpm2cpio.sh b/scripts/rpm2cpio.sh
index 876c53c5d9..7cd771bbe7 100755
--- a/scripts/rpm2cpio.sh
+++ b/scripts/rpm2cpio.sh
@@ -22,7 +22,8 @@ calcsize() {
22 22
23 i=0 23 i=0
24 while [ $i -lt 8 ]; do 24 while [ $i -lt 8 ]; do
25 b="$(_dd $(($offset + $i)) bs=1 count=1)" 25 b=$(_dd $(($offset + $i)) bs=1 count=1; echo X)
26 b=${b%X}
26 [ -z "$b" ] && 27 [ -z "$b" ] &&
27 b="0" || 28 b="0" ||
28 b="$(exec printf '%u\n' "'$b")" 29 b="$(exec printf '%u\n' "'$b")"