Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EOPNOTSUPP not exported by nix crate on FreeBSD #72

Open
ghost opened this issue Feb 6, 2019 · 2 comments
Open

EOPNOTSUPP not exported by nix crate on FreeBSD #72

ghost opened this issue Feb 6, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 6, 2019

On FreeBSD the libc crate defines ENOTSUP as an alias for EOPNOTSUPP. The nix crate however only exports ENOTSUP. Would it be possible to switch to using ENOTSUP in sandboxfs instead for FreeBSD? It's likely the same way on the other BSDs.

return Err(nix::Error::from_errno(Errno::EOPNOTSUPP));

return Err(nix::Error::from_errno(Errno::EOPNOTSUPP));

@jmmv
Copy link
Contributor

jmmv commented Feb 6, 2019

See nix-rust/nix#969.

@jmmv
Copy link
Contributor

jmmv commented Mar 29, 2019

OK, the dependent PR for nix has been fixed. Once it's released, we should be able to switch to ENOTSUP instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant