From owner-cvs-all Tue Sep 4 9: 9: 8 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4B79F37B406; Tue, 4 Sep 2001 09:09:02 -0700 (PDT) Received: (from ru@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f84G92v73490; Tue, 4 Sep 2001 09:09:02 -0700 (PDT) (envelope-from ru) Message-Id: <200109041609.f84G92v73490@freefall.freebsd.org> From: Ruslan Ermilov Date: Tue, 4 Sep 2001 09:09:01 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/find find.1 find.h function.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ru 2001/09/04 09:09:01 PDT Modified files: usr.bin/find find.1 find.h function.c Log: The implementation of -flags was broken and did not match the (poorly) documented behavior. Only a certain set of file flags were recognized, and "no" flags did not match files that have corresponding flags bits turned off. Fix and extend the -flags functionality as follows: : -flags [-|+], : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : . Flags in are checked to be set, and flags in : are checked to be not set. Note that this is different : from -perm, which only allows the user to specify mode bits that : are set. : : If flags are preceded by a dash (``-''), this primary evaluates : to true if at least all of the bits in and none of the bits : in are set in the file's flags bits. If flags are pre- : ceded by a plus (``+''), this primary evaluates to true if any of : the bits in is set in the file's flags bits, or any of the : bits in is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in exactly match : the file's flags bits, and none of the bits match those of : . MFC after: 2 weeks Revision Changes Path 1.38 +66 -21 src/usr.bin/find/find.1 1.12 +3 -3 src/usr.bin/find/find.h 1.33 +13 -10 src/usr.bin/find/function.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message