mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
*** empty log message ***
This commit is contained in:
1 parent
0895ee0069
commit
6119885e07
1 file changed
+3
-2
@@ -127,9 +127,10 @@
|
||||
link count for the file is 1, mv no longer unlinks the file. Instead,
|
||||
it gives the expected diagnostic that the source and destination are
|
||||
the same. WARNING: this is an incomplete fix. If the file happens
|
||||
to have a link count of 2 or greater, mv will still unlink it.
|
||||
to have a link count of 2 or greater, such an erroneous mv command
|
||||
will still unlink it.
|
||||
Although that is not possible on VFAT, it is possible on other file
|
||||
system types, e.g., ntfs, hpfs, and umsdos.
|
||||
system types, e.g., ntfs, and hpfs.
|
||||
* src/copy.c (same_file_ok): Invoke same_name (which might still
|
||||
return false for names that refer to the same directory entry)
|
||||
only if the link count is 2 or more.
|
||||
|
||||
Reference in new issue
Block a user