summaryrefslogtreecommitdiffstats
path: root/external/poky/scripts/rpm2cpio.sh
diff options
context:
space:
mode:
Diffstat (limited to 'external/poky/scripts/rpm2cpio.sh')
-rwxr-xr-xexternal/poky/scripts/rpm2cpio.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/external/poky/scripts/rpm2cpio.sh b/external/poky/scripts/rpm2cpio.sh
index cf23472b..7cd771bb 100755
--- a/external/poky/scripts/rpm2cpio.sh
+++ b/external/poky/scripts/rpm2cpio.sh
@@ -1,5 +1,4 @@
#!/bin/sh -efu
-
# This file comes from rpm 4.x distribution
fatal() {
@@ -23,7 +22,8 @@ calcsize() {
i=0
while [ $i -lt 8 ]; do
- b="$(_dd $(($offset + $i)) bs=1 count=1)"
+ b=$(_dd $(($offset + $i)) bs=1 count=1; echo X)
+ b=${b%X}
[ -z "$b" ] &&
b="0" ||
b="$(exec printf '%u\n' "'$b")"