Index: debug.cc =================================================================== RCS file: /cvsroot/squid/squid3/src/debug.cc,v retrieving revision 1.4 diff -u -p -r1.4 debug.cc --- debug.cc 18 Jan 2003 03:14:47 -0000 1.4 +++ debug.cc 3 Feb 2003 17:48:20 -0000 @@ -239,6 +239,9 @@ _db_rotate_log(void) i--; snprintf(from, MAXPATHLEN, "%s.%d", debug_log_file, i - 1); snprintf(to, MAXPATHLEN, "%s.%d", debug_log_file, i); +#ifdef _SQUID_MSWIN_ + remove(to); +#endif rename(from, to); } /* @@ -252,6 +255,9 @@ _db_rotate_log(void) /* Rotate the current log to .0 */ if (Config.Log.rotateNumber > 0) { snprintf(to, MAXPATHLEN, "%s.%d", debug_log_file, 0); +#ifdef _SQUID_MSWIN_ + remove(to); +#endif rename(debug_log_file, to); } /* Close and reopen the log. It may have been renamed "manually" Index: disk.cc =================================================================== RCS file: /cvsroot/squid/squid3/src/disk.cc,v retrieving revision 1.4 diff -u -p -r1.4 disk.cc --- disk.cc 23 Jan 2003 03:14:42 -0000 1.4 +++ disk.cc 3 Feb 2003 17:48:20 -0000 @@ -64,6 +64,9 @@ file_open(const char *path, int mode) PROF_start(file_open); if (FILE_MODE(mode) == O_WRONLY) mode |= O_APPEND; +#ifdef _SQUID_MSWIN_ + mode |= _O_BINARY; +#endif mode |= SQUID_NONBLOCK; errno = 0; fd = open(path, mode, 0644);