From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg) Newsgroups: comp.os.msdos.djgpp Subject: Re: 9$$DJREN.$$T Rename bug? Date: 3 Jun 2002 07:41:39 GMT Organization: Ericsson Erisoft AB, Sweden Lines: 21 Message-ID: References: <3cfafd35$1 AT duster DOT adelaide DOT on DOT net> NNTP-Posting-Host: lws256.lu.erisoft.se X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Peter Cassidy (peter DOT cassidy DOT ps AT rocksoft DOT com) wrote: : 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? How about showing us what the file names in question (the ones in _your_ code) are? Right, MartinS