From c2dca4bcea51a6116febf0c4594d8c91ac38ee60 Mon Sep 17 00:00:00 2001 From: Vasil Dimov Date: Mon, 26 Sep 2016 22:24:08 +0300 Subject: [PATCH] Explicitly specify the input file to tar with "-f -" On FreeBSD the default one (if no -f is specified) is /dev/sa0, not stdin. License: MIT Signed-off-by: Vasil Dimov --- bin/dist_get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/dist_get b/bin/dist_get index e70754a8580..df3164f4499 100755 --- a/bin/dist_get +++ b/bin/dist_get @@ -52,7 +52,7 @@ unarchive() { tar.gz) if have_binary tar; then echo "==> using 'tar' to extract binary from archive" - cat "$ua_infile" | tar -O -z -x "$ua_distname/$ua_distname" > "$ua_outfile" + cat "$ua_infile" | tar -O -z -x -f - "$ua_distname/$ua_distname" > "$ua_outfile" else die "no binary on system for extracting tar files" fi