1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-17 02:31:02 +00:00
uutils-coreutils/tests
Jeffrey Finkelstein d48a650966 cp: restrict copy through dangling symlink with -f
Change `cp` to terminate with an error when attempting to copy through
a dangling symbolic link with the `--force` option. Before this
commit,

    touch src
    ln -s no-such-file dest
    cp -f src dest

would incorrectly replace `dest` with the contents of `src`. After
this commit, it correctly fails with the error message

    cp: not writing through dangling symlink 'dest'
2022-10-23 20:17:20 -04:00
..
benches/factor all: remove explicit imports of TryFrom and TryInto 2022-04-05 10:39:31 +02:00
by-util cp: restrict copy through dangling symlink with -f 2022-10-23 20:17:20 -04:00
common tests: update to clap 4 2022-10-13 17:50:43 +02:00
fixtures Match GNU semantics for missing EOF 2022-10-07 17:50:26 -04:00
test_util_name.rs tests: update to clap 4 2022-10-13 17:50:43 +02:00
tests.rs tests: do not generate module structure in build.rs 2022-10-05 13:30:22 +02:00