From owner-svn-src-all@FreeBSD.ORG Fri Jun 3 18:18:55 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06D8B106564A; Fri, 3 Jun 2011 18:18:55 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E9FA48FC0A; Fri, 3 Jun 2011 18:18:54 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id p53IIsZh074933; Fri, 3 Jun 2011 18:18:54 GMT (envelope-from jilles@svn.freebsd.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id p53IIseF074931; Fri, 3 Jun 2011 18:18:54 GMT (envelope-from jilles@svn.freebsd.org) Message-Id: <201106031818.p53IIseF074931@svn.freebsd.org> From: Jilles Tjoelker Date: Fri, 3 Jun 2011 18:18:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r222657 - stable/8/usr.bin/find X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2011 18:18:55 -0000 Author: jilles Date: Fri Jun 3 18:18:54 2011 New Revision: 222657 URL: http://svn.freebsd.org/changeset/base/222657 Log: MFC r222390: find: If a part of an expression is unknown, do not call it an option. Although most of the primaries and operators start with "-", they are not options. Examples: find . -xyz find . -name xyz -or bad Modified: stable/8/usr.bin/find/option.c Directory Properties: stable/8/usr.bin/find/ (props changed) Modified: stable/8/usr.bin/find/option.c ============================================================================== --- stable/8/usr.bin/find/option.c Fri Jun 3 17:49:16 2011 (r222656) +++ stable/8/usr.bin/find/option.c Fri Jun 3 18:18:54 2011 (r222657) @@ -176,7 +176,7 @@ find_create(char ***argvp) argv = *argvp; if ((p = lookup_option(*argv)) == NULL) - errx(1, "%s: unknown option", *argv); + errx(1, "%s: unknown primary or operator", *argv); ++argv; new = (p->create)(p, &argv);