summaryrefslogtreecommitdiff
path: root/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2017-04-14 12:08:51 -0700
committerMichael Forney <mforney@mforney.org>2017-04-14 12:23:06 -0700
commit42568142cd2ae0322e92c348f366108792fc8571 (patch)
tree8b4895b698e691d8083808fba32468e5b22e5f51 /pkg/openbsd/patch/0005-tar-Default-to-stdin.patch
parent91ef3a50dc331e4aae80ff8821e026bf914cf470 (diff)
openbsd: Update to 6.1
Diffstat (limited to 'pkg/openbsd/patch/0005-tar-Default-to-stdin.patch')
-rw-r--r--pkg/openbsd/patch/0005-tar-Default-to-stdin.patch26
1 files changed, 12 insertions, 14 deletions
diff --git a/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch b/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch
index f4c2e08c..4ee9207e 100644
--- a/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch
+++ b/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch
@@ -1,27 +1,25 @@
-From 4e6eb43b544fff46d7ca4307b4c0e7699a261ed7 Mon Sep 17 00:00:00 2001
+From cee8b0c189dd7b421e2f3e85557fb4ee4fdf4d6c Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Mon, 18 Apr 2016 01:16:12 -0700
Subject: [PATCH] tar: Default to stdin
---
- bin/pax/options.c | 4 +---
- 1 file changed, 1 insertion(+), 3 deletions(-)
+ bin/pax/options.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/pax/options.c b/bin/pax/options.c
-index 8721eaa..51101c7 100644
+index d615e39cf..022c59664 100644
--- a/bin/pax/options.c
+++ b/bin/pax/options.c
-@@ -871,9 +871,7 @@ tar_options(int argc, char **argv)
-
- if (!fstdin && ((arcname == NULL) || (*arcname == '\0'))) {
+@@ -937,7 +937,7 @@ tar_options(int argc, char **argv)
+ if ((arcname == NULL) || (*arcname == '\0')) {
arcname = getenv("TAPE");
-- if ((arcname == NULL) || (*arcname == '\0'))
+ if ((arcname == NULL) || (*arcname == '\0'))
- arcname = _PATH_DEFTAPE;
-- else if ((arcname[0] == '-') && (arcname[1]== '\0')) {
-+ if ((arcname == NULL) || (*arcname == '\0') || (arcname[0] == '-') && (arcname[1]== '\0')) {
- arcname = NULL;
- fstdin = 1;
- }
++ arcname = NULL;
+ }
+ if ((arcname[0] == '-') && (arcname[1]== '\0'))
+ arcname = NULL;
--
-2.9.3
+2.12.2