pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/archivers/pax/files sync with src:
details: https://anonhg.NetBSD.org/pkgsrc/rev/964e2c5ca1d2
branches: trunk
changeset: 477061:964e2c5ca1d2
user: grant <grant%pkgsrc.org@localhost>
date: Sat Jun 26 13:30:59 2004 +0000
description:
sync with src:
break out of the loop and avoid the infinite loop if attempts to
create, unlink and create all fail.
diffstat:
archivers/pax/files/file_subs.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (31 lines):
diff -r ed5e4e82b997 -r 964e2c5ca1d2 archivers/pax/files/file_subs.c
--- a/archivers/pax/files/file_subs.c Sat Jun 26 12:42:02 2004 +0000
+++ b/archivers/pax/files/file_subs.c Sat Jun 26 13:30:59 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: file_subs.c,v 1.6 2004/06/26 12:42:02 grant Exp $ */
+/* $NetBSD: file_subs.c,v 1.7 2004/06/26 13:30:59 grant Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -44,7 +44,7 @@
#if 0
static char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: file_subs.c,v 1.6 2004/06/26 12:42:02 grant Exp $");
+__RCSID("$NetBSD: file_subs.c,v 1.7 2004/06/26 13:30:59 grant Exp $");
#endif
#endif /* not lint */
@@ -519,6 +519,12 @@
syswarn(1, oerrno, "Cannot create %s", nm);
return(-1);
}
+
+ /*
+ * it must be a file that exists but we can't create or
+ * remove, but we must avoid the infinite loop.
+ */
+ break;
}
/*
Home |
Main Index |
Thread Index |
Old Index