Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/pax PR/18733: Jed Davis: stderr is not constant under li...



details:   https://anonhg.NetBSD.org/src/rev/f6af56fd9465
branches:  trunk
changeset: 538420:f6af56fd9465
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 20 00:40:29 2002 +0000

description:
PR/18733: Jed Davis: stderr is not constant under linux and this is a host
tool.

diffstat:

 bin/pax/pax.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r a4db441c234b -r f6af56fd9465 bin/pax/pax.c
--- a/bin/pax/pax.c     Sun Oct 20 00:35:21 2002 +0000
+++ b/bin/pax/pax.c     Sun Oct 20 00:40:29 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pax.c,v 1.21 2002/10/17 00:42:02 christos Exp $        */
+/*     $NetBSD: pax.c,v 1.22 2002/10/20 00:40:29 christos Exp $        */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)pax.c      8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: pax.c,v 1.21 2002/10/17 00:42:02 christos Exp $");
+__RCSID("$NetBSD: pax.c,v 1.22 2002/10/20 00:40:29 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -110,7 +110,7 @@
 char   *ltmfrmt;               /* -v locale time format (if any) */
 char   *argv0;                 /* root of argv[0] */
 sigset_t s_mask;               /* signal mask for cleanup critical sect */
-FILE   *listf = stderr;        /* file pointer to print file list to */
+FILE   *listf;                 /* file pointer to print file list to */
 char   *tempfile;              /* tempfile to use for mkstemp(3) */
 char   *tempbase;              /* basename of tempfile to use for mkstemp(3) */
 int    forcelocal;             /* force local operation even if the name 
@@ -244,6 +244,8 @@
        char *tmpdir;
        size_t tdlen;
 
+       listf = stderr;
+
        /*
         * Keep a reference to cwd, so we can always come back home.
         */



Home | Main Index | Thread Index | Old Index