diff options
| author | Michael Forney <mforney@mforney.org> | 2020-01-17 01:03:11 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-01-17 01:03:11 -0800 |
| commit | 5891d59419c2660431305680f509b6b555846214 (patch) | |
| tree | 1304b1554325bf2239813a3968007ad4475ffab0 /pkg/openbsd/patch | |
| parent | b85b1744456dd298605d4e08abbd659bd6576a3f (diff) | |
openbsd: Fix tar patch to default to stdin
This can cause a segfault.
Diffstat (limited to 'pkg/openbsd/patch')
| -rw-r--r-- | pkg/openbsd/patch/0005-tar-Default-to-stdin.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch b/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch index 4ee9207e..6c4e9461 100644 --- a/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch +++ b/pkg/openbsd/patch/0005-tar-Default-to-stdin.patch @@ -1,4 +1,4 @@ -From cee8b0c189dd7b421e2f3e85557fb4ee4fdf4d6c Mon Sep 17 00:00:00 2001 +From 901940cdf7fc13516ff55e81df0b546eb7c74595 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 @@ -8,7 +8,7 @@ Subject: [PATCH] tar: Default to stdin 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pax/options.c b/bin/pax/options.c -index d615e39cf..022c59664 100644 +index 5db0948858c..dbb4b816c37 100644 --- a/bin/pax/options.c +++ b/bin/pax/options.c @@ -937,7 +937,7 @@ tar_options(int argc, char **argv) @@ -16,10 +16,10 @@ index d615e39cf..022c59664 100644 arcname = getenv("TAPE"); if ((arcname == NULL) || (*arcname == '\0')) - arcname = _PATH_DEFTAPE; -+ arcname = NULL; ++ arcname = "-"; } if ((arcname[0] == '-') && (arcname[1]== '\0')) arcname = NULL; -- -2.12.2 +2.25.0 |
