summaryrefslogtreecommitdiff
path: root/sbin/pfctl
diff options
context:
space:
mode:
authorjasoni <jasoni@cvs.openbsd.org>2001-06-26 00:18:31 +0000
committerjasoni <jasoni@cvs.openbsd.org>2001-06-26 00:18:31 +0000
commit29d360ddd8e26caafe358d10835398754afea757 (patch)
treec1aeb29cc5bbcdcd6f3ab80afdb658f706072ed4 /sbin/pfctl
parent8ebbd8b80c670a993278a7a6971697985dab7e9c (diff)
display usage if no command line args; ok dhartmei@
Diffstat (limited to 'sbin/pfctl')
-rw-r--r--sbin/pfctl/pfctl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 8951e0c3eec..a76df9e7b1b 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.11 2001/06/25 22:14:07 smart Exp $ */
+/* $OpenBSD: pfctl.c,v 1.12 2001/06/26 00:18:30 jasoni Exp $ */
/*
* Copyright (c) 2001, Daniel Hartmeier
@@ -411,6 +411,9 @@ main(int argc, char *argv[])
int dev;
int ch;
+ if (argc < 2)
+ usage();
+
while ((ch = getopt(argc, argv, "c:del:n:r:s:")) != -1) {
switch (ch) {
case 'c':