logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

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


  1. From 7f16d268831910c1d219b8a4f38b364bba34c710 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. bin/pax/options.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/bin/pax/options.c b/bin/pax/options.c
  9. index cd3f5f6285c..9dd2ea0ce25 100644
  10. --- a/bin/pax/options.c
  11. +++ b/bin/pax/options.c
  12. @@ -968,7 +968,7 @@ tar_options(int argc, char **argv)
  13. if ((arcname == NULL) || (*arcname == '\0')) {
  14. arcname = getenv("TAPE");
  15. if ((arcname == NULL) || (*arcname == '\0'))
  16. - arcname = _PATH_DEFTAPE;
  17. + arcname = "-";
  18. }
  19. if ((arcname[0] == '-') && (arcname[1]== '\0'))
  20. arcname = NULL;
  21. --
  22. 2.49.0