Rename bug?
Alex Zbyslaw
alex at aiva.ed.ac.uk
Wed May 25 23:51:32 AEST 1988
In article <9312 at eddie.MIT.EDU> nathan at 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 at uk.ac.ed.eusip ARPA: alex%ed.eusip at 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?
More information about the Comp.unix.questions
mailing list