DragonFly BSD
DragonFly commits List (threaded) for 2005-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/sys/kern vfs_syscalls.c


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Mon, 15 Aug 2005 12:19:15 +0200

On 15.08.2005, at 12:10, Xin LI wrote:
But, in fact, the case CAN happen if you rename a file to another that
happens to be a hardlink to the first. The rename operations appears to
The FreeBSD behavior was intentional.  I think this change violates
POSIX, which states:

"If the old argument and the new argument resolve to the same existing
file, rename() shall return successfully and perform no other action."

I think they mean "file name", not "physical data" (= inode). Like mv /usr/src/sys/sys/../Makefile.inc /sys/Makefile.inc

which resolves to the same file (through a .. and a symlink)

cheers
  simon

--
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low $$$ NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \

Attachment: PGP.sig
Description: This is a digitally signed message part



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]