Path: utzoo!attcan!uunet!husc6!uwvax!oddjob!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions Subject: Re: Rename bug? Message-ID: <11658@mimsy.UUCP> Date: 24 May 88 22:10:16 GMT References: <9312@eddie.MIT.EDU> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 21 In article <9312@eddie.MIT.EDU> nathan@eddie.MIT.EDU (Nathan Glasser) writes: >On my vax running 4.3bsd ... rename("foo","foo"); ... >will remove the file foo. Sounds like you have a hacked 4.3BSD. From /sys/sys/ufs_syscalls.c: /* * Short circuit rename(foo, foo). */ if (xp->i_number == ip->i_number) goto bad; This is, of course, not quite right: link("foo", "bar"); rename("foo", "bar"); leaves both foo and bar around, where one would expect it to remove file foo. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris