mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
803943fce4
OpenBSD doesn't support `lutimes`, but does support `utimensat` which
subsumes it. In fact, all the BSDs, Linux, and newer macOS all support
it. So lets make this our first choice for the implementation.
In addition, let's get rid of the `lutimes` `ENOSYS` special case. The
Linux manpage says
> ENOSYS
>
> The kernel does not support this call; Linux 2.6.22 or later is
> required.
which I think is the origin of this check, but that's a very old version
of Linux at this point. The code can be simplified a lot of we drop
support for it here (as we've done elsewhere, anyways).
Co-Authored-By: John Ericson <John.Ericson@Obsidian.Systems>
(cherry picked from commit
|
||
---|---|---|
.. | ||
build-remote | ||
external-api-docs | ||
internal-api-docs | ||
libcmd | ||
libexpr | ||
libexpr-c | ||
libfetchers | ||
libflake | ||
libmain | ||
libmain-c | ||
libstore | ||
libstore-c | ||
libutil | ||
libutil-c | ||
nix | ||
nix-build | ||
nix-channel | ||
nix-collect-garbage | ||
nix-copy-closure | ||
nix-env | ||
nix-instantiate | ||
nix-store | ||
perl | ||
nix-expr-test-support | ||
nix-expr-tests | ||
nix-fetchers-tests | ||
nix-flake-tests | ||
nix-store-test-support | ||
nix-store-tests | ||
nix-util-test-support | ||
nix-util-tests |