summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortholo <tholo@openbsd.org>1997-03-04 05:44:49 +0000
committertholo <tholo@openbsd.org>1997-03-04 05:44:49 +0000
commitc7614c5230af0f72fc69a09bc5b4d3cf36b79e06 (patch)
tree11d63d2dbcb3b3cae52e2764502057a6dee1a39b
parentAdd a suggested users group. (diff)
downloadwireguard-openbsd-c7614c5230af0f72fc69a09bc5b4d3cf36b79e06.tar.xz
wireguard-openbsd-c7614c5230af0f72fc69a09bc5b4d3cf36b79e06.zip
Do not post-process directories in cpio mode
-rw-r--r--bin/pax/file_subs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c
index 9828d8cf8dc..3c49b1fdbaf 100644
--- a/bin/pax/file_subs.c
+++ b/bin/pax/file_subs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file_subs.c,v 1.5 1997/03/02 09:46:45 tholo Exp $ */
+/* $OpenBSD: file_subs.c,v 1.6 1997/03/04 05:44:49 tholo Exp $ */
/* $NetBSD: file_subs.c,v 1.4 1995/03/21 09:07:18 cgd Exp $ */
/*-
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: file_subs.c,v 1.5 1997/03/02 09:46:45 tholo Exp $";
+static char rcsid[] = "$OpenBSD: file_subs.c,v 1.6 1997/03/04 05:44:49 tholo Exp $";
#endif
#endif /* not lint */
@@ -500,7 +500,7 @@ node_creat(arcn)
if (pmode)
set_pmode(arcn->name, arcn->sb.st_mode);
- if (arcn->type == PAX_DIR) {
+ if (arcn->type == PAX_DIR && strcmp(NM_CPIO, argv0) != 0) {
/*
* Dirs must be processed again at end of extract to set times
* and modes to agree with those stored in the archive. However