Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 31699 invoked from network); 29 Jun 2005 11:34:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2005 11:34:25 -0000 Received: (qmail 97754 invoked by uid 500); 29 Jun 2005 11:34:25 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 97724 invoked by uid 500); 29 Jun 2005 11:34:24 -0000 Mailing-List: contact commits-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: Reply-To: dev@apr.apache.org List-Id: Delivered-To: mailing list commits@apr.apache.org Received: (qmail 97701 invoked by uid 99); 29 Jun 2005 11:34:22 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 29 Jun 2005 04:34:22 -0700 Received: (qmail 31675 invoked by uid 65534); 29 Jun 2005 11:34:20 -0000 Message-ID: <20050629113420.31674.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r202348 - /apr/apr/trunk/file_io/os2/open.c Date: Wed, 29 Jun 2005 11:34:19 -0000 To: commits@apr.apache.org From: bjh@apache.org X-Mailer: svnmailer-1.0.2 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: bjh Date: Wed Jun 29 04:34:19 2005 New Revision: 202348 URL: http://svn.apache.org/viewcvs?rev=202348&view=rev Log: OS/2: Using apr_file_rename() to replace one file with another doesn't work on some types of network drive as the file system driver returns a different error code when an attempt is made to rename to an existing file name. Allow for this error code, ERROR_ALREADY_EXISTS. Modified: apr/apr/trunk/file_io/os2/open.c Modified: apr/apr/trunk/file_io/os2/open.c URL: http://svn.apache.org/viewcvs/apr/apr/trunk/file_io/os2/open.c?rev=202348&r1=202347&r2=202348&view=diff ============================================================================== --- apr/apr/trunk/file_io/os2/open.c (original) +++ apr/apr/trunk/file_io/os2/open.c Wed Jun 29 04:34:19 2005 @@ -156,7 +156,7 @@ { ULONG rc = DosMove(from_path, to_path); - if (rc == ERROR_ACCESS_DENIED) { + if (rc == ERROR_ACCESS_DENIED || rc == ERROR_ALREADY_EXISTS) { rc = DosDelete(to_path); if (rc == 0 || rc == ERROR_FILE_NOT_FOUND) {