From: "Peter Cassidy" Newsgroups: comp.os.msdos.djgpp References: <3cfc069d AT duster DOT adelaide DOT on DOT net> Subject: Re: 9$$DJREN.$$T Rename bug? Date: Fri, 7 Jun 2002 23:46:39 +0930 Lines: 16 Organization: Rocksoft Limited X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 NNTP-Posting-Host: eth1083.sa.adsl.on.net Message-ID: <3d00c052$1@duster.adelaide.on.net> X-Trace: duster.adelaide.on.net 1023459410 eth1083.sa.adsl.on.net (7 Jun 2002 23:46:50 +0950) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > > > Occasionally (and seemingly at random) I end up with the file > > > 9$$DJREN.$$T floating around. > > > > It's some kind of bug. Please try to find a sequence of actions that > > consistently causes such files to be left around. > > It seems to happen when the input file name has no file extension. When I added ".tmp" to the end of the input file names, the problem went away. Also, looking at the rename code, it seems to me that it does the rename to the temporary file name before it checks to see if the destination file name is a valid name. But I could be wrong. Peter