Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax fd can be -1 or -2 for the gnu long name/link hack. ...
details: https://anonhg.NetBSD.org/src/rev/d429afc70100
branches: trunk
changeset: 570077:d429afc70100
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 22 14:51:12 2004 +0000
description:
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 8bef81fb006b -r d429afc70100 bin/pax/buf_subs.c
--- a/bin/pax/buf_subs.c Wed Sep 22 12:20:24 2004 +0000
+++ b/bin/pax/buf_subs.c Wed Sep 22 14:51:12 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: buf_subs.c,v 1.24 2004/06/15 21:44:55 christos Exp $ */
+/* $NetBSD: buf_subs.c,v 1.25 2004/09/22 14:51:12 christos 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.24 2004/06/15 21:44:55 christos Exp $");
+__RCSID("$NetBSD: buf_subs.c,v 1.25 2004/09/22 14:51:12 christos 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