Author: jilles
Date: Sat Jun  4 21:59:55 2011
New Revision: 222697
URL: http://svn.freebsd.org/changeset/base/222697

Log:
  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.

Modified:
  head/usr.bin/find/main.c

Modified: head/usr.bin/find/main.c
==============================================================================
--- head/usr.bin/find/main.c    Sat Jun  4 20:40:24 2011        (r222696)
+++ head/usr.bin/find/main.c    Sat Jun  4 21:59:55 2011        (r222697)
@@ -120,7 +120,7 @@ main(int argc, char *argv[])
                        break;
                case '?':
                default:
-                       break;
+                       usage();
                }
 
        argc -= optind;
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to