/freebsd/usr.bin/find/ |
H A D | find.h | diff 7fd5ee41e3fc0035fa23ee3022cd53fa8cb0c53d Tue Sep 04 18:09:01 CEST 2001 Ruslan Ermilov <ru@FreeBSD.org> 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 [-|+]<flags>,<notflags> : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : <notflags>. Flags in <flags> are checked to be set, and flags in : <notflags> 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 <flags> and none of the bits : in <notflags> 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 <flags> is set in the file's flags bits, or any of the : bits in <notflags> is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in <flags> exactly match : the file's flags bits, and none of the <flags> bits match those of : <notflags>.
MFC after: 2 weeks diff 7fd5ee41e3fc0035fa23ee3022cd53fa8cb0c53d Tue Sep 04 18:09:01 CEST 2001 Ruslan Ermilov <ru@FreeBSD.org> 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 [-|+]<flags>,<notflags> : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : <notflags>. Flags in <flags> are checked to be set, and flags in : <notflags> 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 <flags> and none of the bits : in <notflags> 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 <flags> is set in the file's flags bits, or any of the : bits in <notflags> is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in <flags> exactly match : the file's flags bits, and none of the <flags> bits match those of : <notflags>.
MFC after: 2 weeks
|
H A D | find.1 | diff 7fd5ee41e3fc0035fa23ee3022cd53fa8cb0c53d Tue Sep 04 18:09:01 CEST 2001 Ruslan Ermilov <ru@FreeBSD.org> 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 [-|+]<flags>,<notflags> : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : <notflags>. Flags in <flags> are checked to be set, and flags in : <notflags> 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 <flags> and none of the bits : in <notflags> 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 <flags> is set in the file's flags bits, or any of the : bits in <notflags> is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in <flags> exactly match : the file's flags bits, and none of the <flags> bits match those of : <notflags>.
MFC after: 2 weeks diff 7fd5ee41e3fc0035fa23ee3022cd53fa8cb0c53d Tue Sep 04 18:09:01 CEST 2001 Ruslan Ermilov <ru@FreeBSD.org> 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 [-|+]<flags>,<notflags> : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : <notflags>. Flags in <flags> are checked to be set, and flags in : <notflags> 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 <flags> and none of the bits : in <notflags> 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 <flags> is set in the file's flags bits, or any of the : bits in <notflags> is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in <flags> exactly match : the file's flags bits, and none of the <flags> bits match those of : <notflags>.
MFC after: 2 weeks
|
H A D | function.c | diff 7fd5ee41e3fc0035fa23ee3022cd53fa8cb0c53d Tue Sep 04 18:09:01 CEST 2001 Ruslan Ermilov <ru@FreeBSD.org> 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 [-|+]<flags>,<notflags> : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : <notflags>. Flags in <flags> are checked to be set, and flags in : <notflags> 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 <flags> and none of the bits : in <notflags> 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 <flags> is set in the file's flags bits, or any of the : bits in <notflags> is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in <flags> exactly match : the file's flags bits, and none of the <flags> bits match those of : <notflags>.
MFC after: 2 weeks diff 7fd5ee41e3fc0035fa23ee3022cd53fa8cb0c53d Tue Sep 04 18:09:01 CEST 2001 Ruslan Ermilov <ru@FreeBSD.org> 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 [-|+]<flags>,<notflags> : The flags are specified using symbolic names (see chflags(1)). : Those with the "no" prefix (except "nodump") are said to be : <notflags>. Flags in <flags> are checked to be set, and flags in : <notflags> 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 <flags> and none of the bits : in <notflags> 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 <flags> is set in the file's flags bits, or any of the : bits in <notflags> is not set in the file's flags bits. Otherwise, : this primary evaluates to true if the bits in <flags> exactly match : the file's flags bits, and none of the <flags> bits match those of : <notflags>.
MFC after: 2 weeks
|