summaryrefslogtreecommitdiff
path: root/bin/pax
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1997-03-04 05:44:50 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1997-03-04 05:44:50 +0000
commitf66c4325e92d8821b8f28ff4a2069110d7dcdc27 (patch)
treeee71b260ce7c6c8eee7a8a6185c1367beebda08f /bin/pax
parente448245be2cde259a042cd2f64ad3dc9bf5dca79 (diff)
Do not post-process directories in cpio mode
Diffstat (limited to 'bin/pax')
-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