Fix a bug: formerly, if d/x was a directory and x a file, "ln x

d/" incorrectly created a link d/x/x.  It also saves some system
	calls.

	Document the fix.
This commit is contained in:
Jim Meyering 2004-06-27 09:41:46 +00:00
parent 54cdcb1a1a
commit 679ce113e4

3
NEWS
View File

@ -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.