Date: Sat, 17 Apr 2010 22:39:53 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/ln ln.c Message-ID: <201004172240.o3HMe9xR002892@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-04-17 22:39:53 UTC FreeBSD src repository Modified files: bin/ln ln.c Log: SVN rev 206773 on 2010-04-17 22:39:53Z by jilles ln: Refuse deleting a directory entry by hardlinking it to itself. Two pathnames refer to the same directory entry iff the directories match and the final components' names match. Example: (assuming file1 is an existing file) ln -f file1 file1 This now fails while leaving file1 intact. It used to delete file1 and then complain it cannot be linked because it is gone. With -i, this error is detected before the question is asked. MFC after: 2 weeks Revision Changes Path 1.40 +59 -2 src/bin/ln/ln.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004172240.o3HMe9xR002892>