This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

rename() in b18


	I've been experimenting with an odd problem with rename(), and am
apparently running into the same (or similar) problem that another person
reported here earlier (by Greg Neujahr).

	I've traced it to the point that it seems that rename() will fail
consistently if there is one or more open file handles on the target
parameter (as in "rename( source, target )").  The errno is 13 (EACCES),
which I think is what Greg was getting.  This doesn't seem to happen with
b17.1, as I haven't changed any code since installing b18.

	I've tried using unlink() to erase the target file before calling
rename(), and although unlink() successfully removes the file, rename()
still fails with the same error.

	I'm running WinNT 4.0, by the way.

	I would like to say, though, that b18 *did* fix an annoying bug
with fork(), and for that I'm most grateful.  8-)

-- 
Ernest M. Crvich
Raleigh/Durham, NC
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]