Windows and OS/2 file rename problem - [PATCH]

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Sun, 03 Aug 2003 11:54:16 +0200

Hi,

On Windows (native and Cygwin) and OS/2, when running
UFSSwapDir::closeTmpSwapLog() in store_dir_ufs.cc, Squid can be fail if the
target file for a rename operation was already deleted.

Because xrename() already try to remove the destination target on Windows,
a previous unlink() is not needed.

This patch extended the native Windows xrename() behaviour to Cygwin and
OS/2 too and remove not needed unlink().

Regards

Guido

-
========================================================
Guido Serassio
Acme Consulting S.r.l.
Via Gorizia, 69 10136 - Torino - ITALY
Tel. : +39.011.3249426 Fax. : +39.011.3293665
Email: guido.serassio@acmeconsulting.it
WWW: http://www.acmeconsulting.it/

Received on Sun Aug 03 2003 - 03:54:56 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:25 MST