This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: New rename(2) function
- From: Igor Peshansky <pechtcha at cs dot nyu dot edu>
- To: Eric Blake <ebb9 at byu dot net>
- Cc: cygwin-developers at cygwin dot com
- Date: Wed, 1 Aug 2007 10:45:24 -0400 (EDT)
- Subject: Re: New rename(2) function
- References: <20070731155745.GE21952@calimero.vinschen.de> <46B082EF.1010102@byu.net>
- Reply-to: cygwin-developers at cygwin dot com
On Wed, 1 Aug 2007, Eric Blake wrote:
> Also, where do you check that rename("a","a") is a successful no-op, as
> well as rename("a","b") when a and b are hard links to the same inode
> (perhaps both of these cases are covered by NtSetInformationFile?)
Huh? The first one I understand, but why is rename("a","b") a no-op?
Shouldn't it cause "a" to be removed?
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
Belief can be manipulated. Only knowledge is dangerous. -- Frank Herbert