Subject: Re: rename(2) behaviour
To: None <netbsd-users@netbsd.org, tech-toolchain@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-users
Date: 05/15/2003 19:21:10
>> Now, if both src and dst not only refer to the same object but refer
>> to it via the same link, which is what I suspect that paragraph was
>> intended to cover, _then_ rename() should do nothing. I'm not sure
>> how best to phrase this. [...]
> You mean "rename 'name' 'name'" should do nothing?
Yes. Or, assuming /sys -> /usr/src/sys, so should
rename("/sys/fnord","/usr/src/sys/fnord")
Or if the current directory is /tmp/englebert, so should
rename("../gonkulator","/tmp/gonkulator")
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B