summaryrefslogtreecommitdiffstats
path: root/usr.bin/find
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2011-06-04 21:59:55 +0000
committerjilles <jilles@FreeBSD.org>2011-06-04 21:59:55 +0000
commit786c89f781c52e7423abdc562256ef0830f60be6 (patch)
tree419edb2b4cdef3071363ecbae8c5b7dc12259544 /usr.bin/find
parente9d242e0e447f3025156133301d432e91adaab05 (diff)
downloadFreeBSD-src-786c89f781c52e7423abdc562256ef0830f60be6.zip
FreeBSD-src-786c89f781c52e7423abdc562256ef0830f60be6.tar.gz
find: Exit if there is an unknown option.
Ignoring the parameter with the unknown options is unlikely to be what was intended. Example: find -n . Note that things like find -n already caused an exit, equivalent to "find" by itself.
Diffstat (limited to 'usr.bin/find')
-rw-r--r--usr.bin/find/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/find/main.c b/usr.bin/find/main.c
index 2c11936..d901623 100644
--- a/usr.bin/find/main.c
+++ b/usr.bin/find/main.c
@@ -120,7 +120,7 @@ main(int argc, char *argv[])
break;
case '?':
default:
- break;
+ usage();
}
argc -= optind;
OpenPOWER on IntegriCloud