Subject: Re: Rename problem
To: Wolfgang Solfrank <ws@tools.de>
From: Klaus Klein <kleink@ira.uka.de>
List: tech-kern
Date: 05/28/1998 13:24:33
ws@tools.de (Wolfgang Solfrank) writes:

> So, what exactly does POSIX have to say about rename semantics?  Would it
> really forbid an implementation that did actually rename the file on disk
> to the new name?

It says that if both `from' and `to' arguments link to the same
existing file, rename() shall return successfully and perform no
further action.

In the msdosfs rename("a", "A") case, `you lose' due to the rename()
semantics, but OTOH msdosfs can't conform to POSIX anyhow since it's
case-insensitive, whereas POSIX requires case-sensitivity.


-klaus