summaryrefslogtreecommitdiff
path: root/archivers/pax
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2004-06-26 13:30:59 +0000
committergrant <grant@pkgsrc.org>2004-06-26 13:30:59 +0000
commite24d57c28d62475ff52a0fef0f87dd626a0808c4 (patch)
treeea24723feb1b41a8b905dda58e6b10d7e63c72d1 /archivers/pax
parent663b3eaa4708af30c6666f398e3fb28f15af5228 (diff)
downloadpkgsrc-e24d57c28d62475ff52a0fef0f87dd626a0808c4.tar.gz
sync with src:
break out of the loop and avoid the infinite loop if attempts to create, unlink and create all fail.
Diffstat (limited to 'archivers/pax')
-rw-r--r--archivers/pax/files/file_subs.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/archivers/pax/files/file_subs.c b/archivers/pax/files/file_subs.c
index 5fc12c81346..32869e90d5a 100644
--- a/archivers/pax/files/file_subs.c
+++ b/archivers/pax/files/file_subs.c
@@ -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 @@ badlink:
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;
}
/*