Comments (7)
from xattr.
I'm working in a chroot, which apparently has user_xattr disabled. Would it be possible to add a check to see if user_xattr is disabled, and if so, try this again on the current directory, and if it is disabled too, skip the tests?
from xattr.
I also tried to set TMPDIR to another location, but TMPDIR is used in other places in the package building... That does not seem to interact very well.
from xattr.
from xattr.
Maybe by checking if the mount points in /proc/mounts contain user_xattr? It may be kind of dirty but I did not find something better...
Something like this with user_xattr instead of acl: https://stackoverflow.com/questions/6291985/how-to-check-wheter-posix-acl-is-enabled-for-a-given-path
Otherwise I guess I'll have to disable the tests when building the package.
from xattr.
@legrostdg - I've sent a PR (#14) adding xattr.Supported
function, so please take a look if it works for you. I'm also skipping tests if OS. doesn't support xattr.
from xattr.
PR (#14) merged.
from xattr.
Related Issues (18)
- xattr.Setxattr triggers an error with (errno 0) code HOT 4
- Darwin panic: com.apple.rootless attr has no value HOT 3
- Solaris/Illumos Support HOT 5
- List() fails with ERANGE on SMB1 HOT 4
- Tests fail on tmpfs HOT 4
- Symlink handling? HOT 4
- List returns error "cannot allocate memory"? HOT 12
- github build action HOT 2
- operation not supported
- Supporting for Windows HOT 11
- Code is not formatted according to gofmt? HOT 2
- Build is broken on linux with the recent changes HOT 2
- Typo
- Superfluous space in `(*Error).String()` when `Error.Name == ""` HOT 1
- API stutters a lot HOT 2
- Switch to github CI
- EINVAL instead of ENOTSUP on Solaris HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xattr.