From: Jim Meyering Date: Sun, 7 Sep 2003 16:32:02 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v5.0.91~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=101f307f3cf44909f32f17b64c540a8367c12d1e;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/NEWS b/NEWS index e35ddedd2d..3f52a35466 100644 --- a/NEWS +++ b/NEWS @@ -24,6 +24,16 @@ GNU coreutils NEWS -*- outline -*- ** Bug fixes + Mistakenly renaming a file onto itself, e.g., via `mv B b' when `B' is + the same directory entry as `b' no longer destroys the directory entry + referenced by both `b' and `B'. Note that this would happen only on + file systems like VFAT where two different names may refer to the same + directory entry, usually due to lower->upper case mapping of file names. + Now, the above can happen only on file systems that perform name mapping and + that support hard links (stat.st_nlink > 1). This mitigates the problem + in two ways: few file systems appear to be affected (hpfs and ntfs are), + when the bug is triggered, mv no longer removes the last hard link to a file. + stat no longer overruns a buffer for format strings ending in `%' fold -s -wN would infloop for N < 8 with TABs in the input.