From commits-return-7355-apmail-apr-commits-archive=apr.apache.org@apr.apache.org Thu Feb 09 20:26:18 2006 Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 61271 invoked from network); 9 Feb 2006 20:25:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 20:25:55 -0000 Received: (qmail 95891 invoked by uid 500); 9 Feb 2006 20:25:46 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 95770 invoked by uid 500); 9 Feb 2006 20:25:45 -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 95757 invoked by uid 99); 9 Feb 2006 20:25:45 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 12:25:45 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,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; Thu, 09 Feb 2006 12:25:45 -0800 Received: (qmail 61013 invoked by uid 65534); 9 Feb 2006 20:25:24 -0000 Message-ID: <20060209202524.61011.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r376423 - /apr/apr/trunk/file_io/win32/filepath.c Date: Thu, 09 Feb 2006 20:25:24 -0000 To: commits@apr.apache.org From: wrowe@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: wrowe Date: Thu Feb 9 12:25:22 2006 New Revision: 376423 URL: http://svn.apache.org/viewcvs?rev=376423&view=rev Log: This branch of the code reflects that no machine name is given, such that the entire path is '//' or '\\'. Therefore we can't tweak the 'middle' seperator e.g. '\\foo\bar' to '//foo/bar', as the bug indicates we were overwriting the trailing null with the '/' portable seperator and therefore the string was not even terminated. '\\' should become simply '//' with TRUENAME, non-native name. PR: 31878 Modified: apr/apr/trunk/file_io/win32/filepath.c Modified: apr/apr/trunk/file_io/win32/filepath.c URL: http://svn.apache.org/viewcvs/apr/apr/trunk/file_io/win32/filepath.c?rev=376423&r1=376422&r2=376423&view=diff ============================================================================== --- apr/apr/trunk/file_io/win32/filepath.c (original) +++ apr/apr/trunk/file_io/win32/filepath.c Thu Feb 9 12:25:22 2006 @@ -255,9 +255,6 @@ } else { newpath = apr_pstrndup(p, testpath, delim1 - testpath); - if (flags & APR_FILEPATH_TRUENAME) { - newpath[delim1 - testpath] = seperator[0]; - } } if (flags & APR_FILEPATH_TRUENAME) { newpath[0] = seperator[0];