uutils / coreutils

Cross-platform Rust rewrite of the GNU coreutils
https://uutils.github.io/
MIT License
17.24k stars 1.24k forks source link

cp: Fix broken symlinks to parent-dir #6464

Open luigieli opened 3 weeks ago

luigieli commented 3 weeks ago

According to the GNU cp official documentation, a symlink is only created if all source paths are absolute, unless the destination files are in the current directory.

This fix solves this GNU cp incompatibility by:

Fixes #6385.

github-actions[bot] commented 3 weeks ago

GNU testsuite comparison:

GNU test failed: tests/timeout/timeout. tests/timeout/timeout is passing on 'main'. Maybe you have to rebase?
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
github-actions[bot] commented 1 week ago

GNU testsuite comparison:

Congrats! The gnu test tests/timeout/timeout is no longer failing!