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 Pull up revision 1.41 (requested by jmc in tick...
details: https://anonhg.NetBSD.org/src/rev/04e48b3129a7
branches: netbsd-2-0
changeset: 561542:04e48b3129a7
user: tron <tron%NetBSD.org@localhost>
date: Tue Jun 22 07:29:43 2004 +0000
description:
Pull up revision 1.41 (requested by jmc in ticket #527):
Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')
Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).
Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.
Fixes PR's: PR#17762 PR#25944
diffstat:
bin/pax/ar_io.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 10aa25d3207f -r 04e48b3129a7 bin/pax/ar_io.c
--- a/bin/pax/ar_io.c Tue Jun 22 07:29:20 2004 +0000
+++ b/bin/pax/ar_io.c Tue Jun 22 07:29:43 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ar_io.c,v 1.39 2003/10/27 00:12:41 lukem Exp $ */
+/* $NetBSD: ar_io.c,v 1.39.2.1 2004/06/22 07:29:43 tron Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)ar_io.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: ar_io.c,v 1.39 2003/10/27 00:12:41 lukem Exp $");
+__RCSID("$NetBSD: ar_io.c,v 1.39.2.1 2004/06/22 07:29:43 tron Exp $");
#endif
#endif /* not lint */
@@ -854,8 +854,12 @@
/*
* if file is out of space, handle it like a return of 0
*/
- if ((errno == ENOSPC) || (errno == EFBIG) || (errno == EDQUOT))
+ if ((errno == ENOSPC) || (errno == EFBIG))
res = lstrval = 0;
+#ifdef EDQUOT
+ if (errno == EDQUOT)
+ res = lstrval = 0;
+#endif
break;
case ISTAPE:
case ISCHR:
Home |
Main Index |
Thread Index |
Old Index