bugfindutils - Bugs: bug #58941, wishlist: Support for -xattr...

 
 

bug #58941: wishlist: Support for -xattr -xattrname

Submitted by:  Kevin Locke <kevinoid>
Submitted on:  Wed 12 Aug 2020 02:34:14 PM UTC  
 
Category:  find Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  None Fixed Release:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 13 Aug 2020 03:18:39 AM UTC, comment #1: 

As mentioned in a post to the bug-findutils mailing list, Morgan Weetman graciously made available his previous work implementing -xattr (and -cap for capabilities) in https://gitlab.com/mweetman/findutils .  This should make an excellent starting place for future work.  See Pavel Raiskup's feedback and Bernhard Voelker's feedback for remaining issues.

[Note: This is being added as a comment to the bug tracker for others who may find this issue there.]

Kevin Locke <kevinoid>
Wed 12 Aug 2020 02:34:14 PM UTC, original submission:  

It would be great if find could support searching for files based on the presence/absence of extended attributes (xattrs).

The only way I could find to do this currently is via -exec, as suggested in https://unix.stackexchange.com/q/162359 and https://unix.stackexchange.com/q/132795

For reference, OS X find supports xattr search with the tests:

-xattr
True if the file has any extended attributes.

-xattrname name
True if the file has an extended attribute with the specified name.

per https://opensource.apple.com/source/shell_cmds/shell_cmds-203/find/find.1.auto.html

Thanks for considering,
Kevin

Kevin Locke <kevinoid>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rnhmjoj (xattrs support in find)
  • -email is unavailable- added by kevinoid (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-07-01 rnhmjoj Carbon-Copy- => Added rnhmjoj@eurofusion.eu

    Back to the top


    Powered by Savane 3.7