[patch #9754] find: new '-attr' predicate to test inode flags
Matt Whitlock <[email protected]> Wed, 15 Jul 2026 00:53:49 -0400 (EDT)
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
--8323329-1189641421-1784091229=:1621493 Content-Type: TEXT/plain; CHARSET=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Content-Disposition: inline Follow-up Comment #6, patch #9754 (group findutils):=0A=0A[comment #5 comme= nt #5:]=0A> So this patch should at least anticipate subsequent additional= =0A> implementations for other operating systems.=0A=0AWhat would that look= like?=0A=0AI can see two places where my patchset currently makes an unche= cked assumption=0Aof Linux:=0A=0A* The definitions of attr_to_flag() and at= tr_to_rate() in find/parser.c.=0A=0A* The definition of get_iflags() in fin= d/util.c.=0A=0AThose three function definitions should additionally be guar= ded by #if=0AHAVE_LINUX_FS_H so that they would not apply on other systems = where=0AHAVE_INODE_FLAGS might become true in the future. (Those systems wo= uld need=0Atheir own implementations of these three functions.)=0A=0A=0A = _______________________________________________________=0A=0AReply to this= item at:=0A=0A <https://savannah.gnu.org/patch/?9754>=0A=0A______________= _________________________________=0AMessage sent via Savannah=0Ahttps://sav= annah.gnu.org/=0A --8323329-1189641421-1784091229=:1621493 Content-Type: APPLICATION/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCalcSXQAKCRCqLAuaBUf3 Tpn8AP97tGkrdwD+ov6ejWdlfqCpNFTcFy2sJI5DE5WCOPb94gEA514xnS1+Q767 NOoSST8ZUxxpxniHopDbIM9L8RFrHwg= =Tta6 -----END PGP SIGNATURE----- --8323329-1189641421-1784091229=:1621493--