opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0005-tar-Default-to-stdin.patch (721B)


      1 From 901940cdf7fc13516ff55e81df0b546eb7c74595 Mon Sep 17 00:00:00 2001
      2 From: Michael Forney <mforney@mforney.org>
      3 Date: Mon, 18 Apr 2016 01:16:12 -0700
      4 Subject: [PATCH] tar: Default to stdin
      5 
      6 ---
      7  bin/pax/options.c | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/bin/pax/options.c b/bin/pax/options.c
     11 index 5db0948858c..dbb4b816c37 100644
     12 --- a/bin/pax/options.c
     13 +++ b/bin/pax/options.c
     14 @@ -937,7 +937,7 @@ tar_options(int argc, char **argv)
     15  	if ((arcname == NULL) || (*arcname == '\0')) {
     16  		arcname = getenv("TAPE");
     17  		if ((arcname == NULL) || (*arcname == '\0'))
     18 -			arcname = _PATH_DEFTAPE;
     19 +			arcname = "-";
     20  	}
     21  	if ((arcname[0] == '-') && (arcname[1]== '\0'))
     22  		arcname = NULL;
     23 -- 
     24 2.25.0
     25