sandboxfs icon indicating copy to clipboard operation
sandboxfs copied to clipboard

EOPNOTSUPP not exported by nix crate on FreeBSD

Open ghost opened this issue 6 years ago • 2 comments

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.

https://github.com/bazelbuild/sandboxfs/blob/6d8108faace27fead63bd2e1ef65ce25fdc5d8e4/src/nodes/mod.rs#L117 https://github.com/bazelbuild/sandboxfs/blob/6d8108faace27fead63bd2e1ef65ce25fdc5d8e4/src/nodes/mod.rs#L155

ghost avatar Feb 06 '19 10:02 ghost

See https://github.com/nix-rust/nix/pull/969.

jmmv avatar Feb 06 '19 21:02 jmmv

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

jmmv avatar Mar 29 '19 13:03 jmmv