summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexandre Oliva <lxoliva@fsfla.org>2014-07-20 14:27:42 +0000
committerAlexandre Oliva <lxoliva@fsfla.org>2014-07-20 14:27:42 +0000
commit02780dad2224a8f4aeb922a15ab5c94aaa6a225f (patch)
tree7c1cb0bf3b20c1fb7cab2926f1c37ef370625c37 /scripts
parentf48cdf07f0a5d0f1230224168a6cbc7ea4e7859e (diff)
downloadlinux-libre-raptor-02780dad2224a8f4aeb922a15ab5c94aaa6a225f.tar.gz
linux-libre-raptor-02780dad2224a8f4aeb922a15ab5c94aaa6a225f.zip
deblob-check: fix tarball verification with tar 1.27
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deblob-check16
1 files changed, 14 insertions, 2 deletions
diff --git a/scripts/deblob-check b/scripts/deblob-check
index 9e7457d85..7c31cb148 100755
--- a/scripts/deblob-check
+++ b/scripts/deblob-check
@@ -1,6 +1,6 @@
#! /bin/sh
-# deblob-check version 2014-06-08
+# deblob-check version 2014-07-19
# Inspired in gNewSense's find-firmware script.
# Written by Alexandre Oliva <lxoliva@fsfla.org>
@@ -7591,7 +7591,19 @@ BAD regular expression:
# Extract or otherwise munge...
case /$input in
*.tar*)
- cmd="tar -xf - --to-command='echo \";/*begin \$TAR_FILENAME*/;\"; cat; echo; echo \";/*end \$TAR_FILENAME*/;\"'"
+ tarwrap=`mktemp -t deblob-check-tarwrap-XXXXXX`
+ tempfiles="$tempfiles $tarwrap"
+
+ cat >> $tarwrap <<EOF
+#! /bin/sh
+echo='$echo' &&
+$echo ";/*begin \$1*/;" &&
+cat &&
+echo &&
+$echo ";/*end \$1*/;"
+EOF
+ chmod +x $tarwrap
+ cmd="tar -xf - --to-command='$tarwrap \"\$TAR_FILENAME\"'"
;;
*.patch | *.patch.*z* | */patch-* | *.diff | *.diff.*z*)
if $reverse_patch; then
OpenPOWER on IntegriCloud