Date: Sat, 1 May 2010 14:29:33 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/ln ln.c Message-ID: <201005011429.o41ETpiX025371@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2010-05-01 14:29:33 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) bin/ln ln.c Log: SVN rev 207464 on 2010-05-01 14:29:33Z by jilles MFC r206773: ln: Do not delete a file 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. Revision Changes Path 1.39.2.2 +59 -2 src/bin/ln/ln.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005011429.o41ETpiX025371>