Fix a bug: formerly, if d/x was a directory and x a file, "ln x
authorJim Meyering <jim@meyering.net>
Sun, 27 Jun 2004 09:41:46 +0000 (09:41 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 27 Jun 2004 09:41:46 +0000 (09:41 +0000)
d/" incorrectly created a link d/x/x.  It also saves some system
calls.

Document the fix.

NEWS

diff --git a/NEWS b/NEWS
index edcd368..b92dc6e 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -42,6 +42,9 @@ GNU coreutils NEWS                                    -*- outline -*-
   when first encountering a directory, `rm -r' would mistakenly fail
   to remove files under that directory.
 
+  If d/x is a directory and x a file, "ln x d/" now reports an error
+  instead of incorrectly creating a link to d/x/x.
+
   ptx now diagnoses invalid values for its --width=N (-w)
   and --gap-size=N (-g) options.