1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #4820 from sylvestre/thru-dangling-2

cp: fix cp -f f loop when loop is a symlink loop
This commit is contained in:
Daniel Hofstetter 2023-05-04 08:20:57 +02:00 committed by GitHub
commit 616a166e36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 95 additions and 6 deletions

View file

@ -72,7 +72,7 @@ fn test_mv_move_file_into_dir_with_target_arg() {
.succeeds()
.no_stderr();
assert!(at.file_exists(format!("{dir}/{file}")))
assert!(at.file_exists(format!("{dir}/{file}")));
}
#[test]
@ -90,7 +90,7 @@ fn test_mv_move_file_into_file_with_target_arg() {
.fails()
.stderr_is(format!("mv: target directory '{file1}': Not a directory\n"));
assert!(at.file_exists(file1))
assert!(at.file_exists(file1));
}
#[test]