sandboxfs
sandboxfs copied to clipboard
EOPNOTSUPP not exported by nix crate on FreeBSD
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
See https://github.com/nix-rust/nix/pull/969.
OK, the dependent PR for nix has been fixed. Once it's released, we should be able to switch to ENOTSUP instead.