-
Notifications
You must be signed in to change notification settings - Fork 91
Description
Hello. Thanks for the continued work on this tool.
Description
This is a general feature request, though I'll use a specific example to describe the potential use
I occasionally work with firmware that makes use of extended attributes (xattrs). The default behavior of sasquatch appears to be to try to preserve them while extracting:
20:39:45 › sasquatch --help 2>&1 | grep xattr
-no[-xattrs] don't extract xattrs in file system
-x[attrs] extract xattrs in file system (default) <-- "default"
-u[ser-xattrs] only extract user xattrs in file system.
Enables extracting xattrs
I would like to inhibit setting xattrs
More generally, I would like to be able to pass arbitrary command-line flags to any extraction tool
Describe the solution you'd like
It would be useful if one could influence the command-line flags that are set for extraction tools. Perhaps as some sort of opaque string passthrough (e.g. --tool-options="sasquatch:-no-xattrs") or something the developers would prefer (configuration file, environment variable are a few other options that come to mind...)
Describe alternatives you've considered
The other alternatives are:
- Modify the code to insert the flags (either in-place, or, probably by copying the core plugins to a different directory, modifying them, and then pointing
--plugins-pathat that directory) - Use wrappers (e.g.
cp /usr/bin/sasquatch /usr/bin/sasquatch.real, then have/usr/bin/sasquatchas a shell script that just does/usr/bin/sasquatch.real -no-xattrs "$@"or something) - Using tool-specific configuration files (I don't think this is a thing for
sasquatch, though - and it's not a great generic solution since each tool would have its own convention anyway) - ...
Additional context
Apologies in advanced if there is a way to do this - I'm still relatively new to unblob - proficient with its use, but have rarely delved into any advanced features - a testament to how well it's designed and implemented. I'll be thankful for pointers to any documentation particularly relevant to this, in case there's already a way to do it
Thanks!