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.
|