www.delorie.com/archives/browse.cgi | search |
Date: | Sat, 08 Jun 2002 18:59:46 +0300 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | "Peter Cassidy" <peter DOT cassidy DOT ps AT rocksoft DOT com> |
Message-Id: | <2110-Sat08Jun2002185946+0300-eliz@is.elta.co.il> |
X-Mailer: | emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <3d00c052$1@duster.adelaide.on.net> |
(peter DOT cassidy DOT ps AT rocksoft DOT com) | |
Subject: | Re: 9$$DJREN.$$T Rename bug? |
References: | <Pine DOT SUN DOT 3 DOT 91 DOT 1020603132746 DOT 21774A-100000 AT is> <3cfc069d AT duster DOT adelaide DOT on DOT net> <3d00c052$1 AT duster DOT adelaide DOT on DOT net> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: "Peter Cassidy" <peter DOT cassidy DOT ps AT rocksoft DOT com> > Newsgroups: comp.os.msdos.djgpp > Date: Fri, 7 Jun 2002 23:46:39 +0930 > > > > 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. Could you please paste the source of the _rename function into your program, and then step through its code with a debugger and tell what part of it fails and why? > 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. That's true, but it shouldn't be a problem, since _rename is supposed to rename the temporary file back into the original name if the renaming itself fails.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |