Source-Changes-HG archive

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

[src/netbsd-2-0]: src/bin/pax Pullup rev 1.25 (requested by christos in ticke...



details:   https://anonhg.NetBSD.org/src/rev/49c567653927
branches:  netbsd-2-0
changeset: 562801:49c567653927
user:      jmc <jmc%NetBSD.org@localhost>
date:      Fri Nov 12 05:04:07 2004 +0000

description:
Pullup rev 1.25 (requested by christos in ticket #922)

fd can be -1 or -2 for the gnu long name/link hack. So check for >= 0
instead of -1 if we need to flush.

diffstat:

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

diffs (27 lines):

diff -r c089738704e7 -r 49c567653927 bin/pax/buf_subs.c
--- a/bin/pax/buf_subs.c        Fri Nov 12 05:02:46 2004 +0000
+++ b/bin/pax/buf_subs.c        Fri Nov 12 05:04:07 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: buf_subs.c,v 1.23.2.1 2004/06/18 09:07:20 tron Exp $   */
+/*     $NetBSD: buf_subs.c,v 1.23.2.2 2004/11/12 05:04:07 jmc Exp $    */
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)buf_subs.c 8.2 (Berkeley) 4/18/94";
 #else
-__RCSID("$NetBSD: buf_subs.c,v 1.23.2.1 2004/06/18 09:07:20 tron Exp $");
+__RCSID("$NetBSD: buf_subs.c,v 1.23.2.2 2004/11/12 05:04:07 jmc Exp $");
 #endif
 #endif /* not lint */
 
@@ -745,7 +745,7 @@
         * written. just closing with the file offset moved forward may not put
         * a hole at the end of the file.
         */
-       if (ofd != -1 && isem && (arcn->sb.st_size > 0L))
+       if (ofd >= 0 && isem && (arcn->sb.st_size > 0L))
                file_flush(ofd, fnm, isem);
 
        /*



Home | Main Index | Thread Index | Old Index