From: "Peter Cassidy" Newsgroups: comp.os.msdos.djgpp Subject: 9$$DJREN.$$T Rename bug? Date: Mon, 3 Jun 2002 14:52:59 +0930 Lines: 20 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: <3cfafd35$1@duster.adelaide.on.net> X-Trace: duster.adelaide.on.net 1023081781 eth1083.sa.adsl.on.net (3 Jun 2002 14:53:01 +0950) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hello, I have a DOS application that uses the djgpp libc libraries, and throws files around a bit (writing to temporary files and renaming them to the final name). Occasionally (and seemingly at random) I end up with the file 9$$DJREN.$$T floating around. Now I have found the code in 'rename' that produces this file (it's a temporary that rename uses), and it looks like it occurs when the file can be renamed to the temp name but then not renamed to the final name. So my question is: under what circumstances would this happen? Is it my fault and I need to use the 'rename' call in a different way? Or does it indicate a bug in the djgpp libraries? Thanks in advance, Peter