0003-pax-Set-listf-to-stderr-in-main.patch (1135B)
1 From e2ca2e2a530e61e8af65dca829aa1fcad5c59a7d Mon Sep 17 00:00:00 2001 2 From: Michael Forney <mforney@mforney.org> 3 Date: Mon, 18 Apr 2016 00:13:51 -0700 4 Subject: [PATCH] pax: Set listf to stderr in main 5 6 --- 7 bin/pax/pax.c | 4 +++- 8 1 file changed, 3 insertions(+), 1 deletion(-) 9 10 diff --git a/bin/pax/pax.c b/bin/pax/pax.c 11 index f6b3634369a..3d50e051075 100644 12 --- a/bin/pax/pax.c 13 +++ b/bin/pax/pax.c 14 @@ -93,7 +93,7 @@ char *dirptr; /* destination dir in a copy */ 15 char *argv0; /* root of argv[0] */ 16 enum op_mode op_mode; /* what program are we acting as? */ 17 sigset_t s_mask; /* signal mask for cleanup critical sect */ 18 -FILE *listf = stderr; /* file pointer to print file list to */ 19 +FILE *listf; /* file pointer to print file list to */ 20 int listfd = STDERR_FILENO; /* fd matching listf, for sighandler output */ 21 char *tempfile; /* tempfile to use for mkstemp(3) */ 22 char *tempbase; /* basename of tempfile to use for mkstemp(3) */ 23 @@ -224,6 +224,8 @@ main(int argc, char **argv) 24 char *tmpdir; 25 size_t tdlen; 26 27 + listf = stderr; 28 + 29 /* 30 * Keep a reference to cwd, so we can always come back home. 31 */ 32 -- 33 2.19.0 34