[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Bug moving file over link?
- From: Jeremy Fitzhardinge <jeremy goop org>
- To: Andrew Morton <akpm digeo com>
- Cc: cs zip com au, bescoto stanford edu,EXT3 Users <ext3-users redhat com>,"Stephen C. Tweedie" <sct redhat com>
- Subject: Re: Bug moving file over link?
- Date: 08 Feb 2003 19:41:37 -0800
On Sat, 2003-02-08 at 16:57, Andrew Morton wrote:
> The Open Group base specification 6 says:
>
> "If the old argument and the new argument resolve to the same existing file,
> rename() shall return successfully and perform no other action."
>
> http://www.opengroup.org/onlinepubs/007904975/functions/rename.html
Seems to be an ambiguous to me. I would interpret that to mean that if
old and new ended up referring to the same direntry in the same
directory then there should be no operation, rather than two entries
pointing to the same inode. Hm, their definition of "file" does seem to
mean the inode, which makes rename's behaviour a bit counter-intuitive
here.
J
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]