bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#81377: mv -Tn suceeds if target directory exists, no error printed


From: Florian Weimer
Subject: bug#81377: mv -Tn suceeds if target directory exists, no error printed
Date: Wed, 08 Jul 2026 14:33:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Based on the documentation, I would have expected an error in this case.

mkdir a a/1 b b/2
mv -Tn a b

Exit status is zero.  The only relevant system call in the strace output
is this one:

renameat2(AT_FDCWD, "a", AT_FDCWD, "b", RENAME_NOREPLACE) = -1 EEXIST (File 
exists)

Seen with: coreutils-9.7-9.fc43.x86_64

Thanks,
Florian






reply via email to

[Prev in Thread] Current Thread [Next in Thread]