summaryrefslogtreecommitdiff
path: root/bin/pax/pax.c
diff options
context:
space:
mode:
authorSebastien Marie <semarie@cvs.openbsd.org>2016-06-23 06:37:37 +0000
committerSebastien Marie <semarie@cvs.openbsd.org>2016-06-23 06:37:37 +0000
commit98c6565fa59831cf9a80df2caea8e4afd404a3d1 (patch)
treeb5857cb1bdddbf6318e99042aebcda202bb5ff1a /bin/pax/pax.c
parent7c4f5d036058784574d38e8ddf40f0aca715b73f (diff)
allow creation of devices or fifo without -p (as it is already allowed with -p)
diff from trondd at kagu-tsuchi com, enhanced by me for reordering promises ok deraadt@
Diffstat (limited to 'bin/pax/pax.c')
-rw-r--r--bin/pax/pax.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/pax/pax.c b/bin/pax/pax.c
index 6d70b7afb39..1b17b8c16f4 100644
--- a/bin/pax/pax.c
+++ b/bin/pax/pax.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pax.c,v 1.44 2015/12/16 01:39:11 tb Exp $ */
+/* $OpenBSD: pax.c,v 1.45 2016/06/23 06:37:36 semarie Exp $ */
/* $NetBSD: pax.c,v 1.5 1996/03/26 23:54:20 mrg Exp $ */
/*-
@@ -261,13 +261,13 @@ main(int argc, char **argv)
* so can't pledge at all then.
*/
if (pmode == 0 || (act != EXTRACT && act != COPY)) {
- if (pledge("stdio rpath wpath cpath dpath fattr getpw ioctl proc exec",
+ if (pledge("stdio rpath wpath cpath fattr dpath getpw ioctl proc exec",
NULL) == -1)
err(1, "pledge");
/* Copy mode, or no gzip -- don't need to fork/exec. */
if (gzip_program == NULL || act == COPY) {
- if (pledge("stdio rpath wpath fattr cpath getpw ioctl",
+ if (pledge("stdio rpath wpath cpath fattr dpath getpw ioctl",
NULL) == -1)
err(1, "pledge");
}