Path: utzoo!attcan!uunet!mcvax!ukc!its63b!aiva!alex From: alex@aiva.ed.ac.uk (Alex Zbyslaw) Newsgroups: comp.unix.questions Subject: Re: Rename bug? Message-ID: <467@aiva.ed.ac.uk> Date: 25 May 88 13:51:32 GMT References: <9312@eddie.MIT.EDU> Reply-To: alex@eusip.ed.ac.uk (Alex Zbyslaw) Organization: CSTR, University of Edinburgh Lines: 24 In article <9312@eddie.MIT.EDU> nathan@eddie.MIT.EDU (Nathan Glasser) writes: >> >On my vax running 4.3bsd, apparently calling the rename(2) function >with the same filename for both arguments causes the function to >remove the file, and return 0 indicating success. >This is definitely contrary to the statement of the man page which >says that an instance of the file is guaranteed to exist, even >if the system crashes. RENAME(2) UNIX Programmer's Manual RENAME(2) [...] Rename causes the link named from to be renamed as to. If to exists, then it is first removed. Need I point out the importance of the second sentence? --Alex -- JANET: alex@uk.ac.ed.eusip ARPA: alex%ed.eusip@nss.cs.ucl UUCP: ...{uunet, decvax, ihnp4}!mcvax!ukc!eusip!alex [CSNET BITNET]: alex%ed.eusip%nss.cs.ucl@[csnet-relay cunyvm] Who needs opinions anyway?