View Single Post
Old 04-26-2002, 03:59 AM   #10
Samson
Member
 
Join Date: Apr 2002
Location: United Socialist States of America
Home MUD: SmaugMuds.org
Home MUD: Arthmoor MUD Hosting
Posts: 249
Samson is on a distinguished road
Bah. It just ocurred to me what the problem is now that I see it's because of RENAME, in all caps like that. Ran into this with a client I'm hosting, and this is how we fixed his. In misc.c, at the VERY bottom you have this:

// to emulate Unix rename - we must delete the newpath first
int RENAME (const char * oldpath, const char * newpath)
{
remove (newpath);
return rename (oldpath, newpath);
}

What you need to do is add this below it:

#else

int RENAME( const char *oldpath, const char *newpath )
{
return rename( oldpath, newpath );
}

This should fix the problem. DONT remove the #endif that is at the very bottom of the file. It's quite necessary. Try it, since I have no way to verify that this will actually solve it under Cygwin.
Samson is offline   Reply With Quote