summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl.c
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-01-06 21:56:13 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2002-01-06 21:56:13 +0000
commitb7180b885b5e31ae1367aaf2a291f222c48c4945 (patch)
tree3af39f525c4e75daed16027f25aeec4160a34154 /sbin/pfctl/pfctl.c
parentf6a4706fc1434bf995a1399ca560cec8bdb59d8a (diff)
-x needs read-write access for DIOCSETDEBUG ioctl
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r--sbin/pfctl/pfctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 55280ef9ca4..73334d9cc84 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.49 2001/12/31 16:48:36 mickey Exp $ */
+/* $OpenBSD: pfctl.c,v 1.50 2002/01/06 21:56:12 dhartmei Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -731,6 +731,7 @@ main(int argc, char *argv[])
break;
case 'x':
debugopt = optarg;
+ mode = O_RDWR;
break;
case 'h':
default: