coreutils
coreutils copied to clipboard
`sync`: cleanup and implement `fsync` if files are given
Changes:
- The files are
PathBufnow, allowing invalid UTF-8 - We've got
fsyncnow if files are given but neither--dataor--file-systemis passed. - We no longer check the paths up front, but while opening the paths.
- Our functions are no longer marked
unsafe, because they aren't :) --dataand--file-systemare hidden when they are not supported--dataand--file-systemtrigger an error when they are used, but not supported- Some functions were (I think) available on more platforms that what we were using, so I tried to remove from
cfggates.
I can't be bothered with also fixing Windows right now :)
I tried to use nix, but it was sadly missing some Android stuff, which I've made a PR for: https://github.com/nix-rust/nix/pull/2296.
Meh, I'll fix Mac soon
GNU testsuite comparison:
GNU test failed: tests/misc/sync. tests/misc/sync is passing on 'main'. Maybe you have to rebase?