Return-Path: Delivered-To: apmail-apr-commits-archive@www.apache.org Received: (qmail 22992 invoked from network); 26 Oct 2006 16:23:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 16:23:29 -0000 Received: (qmail 40392 invoked by uid 500); 26 Oct 2006 16:23:33 -0000 Delivered-To: apmail-apr-commits-archive@apr.apache.org Received: (qmail 40336 invoked by uid 500); 26 Oct 2006 16:23:33 -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 40302 invoked by uid 99); 26 Oct 2006 16:23:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 09:23:32 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 09:23:18 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id AB0A11A9846; Thu, 26 Oct 2006 09:22:57 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r468055 - in /apr/apr/trunk: CHANGES file_io/unix/mktemp.c Date: Thu, 26 Oct 2006 16:22:57 -0000 To: commits@apr.apache.org From: rooneg@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061026162257.AB0A11A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rooneg Date: Thu Oct 26 09:22:52 2006 New Revision: 468055 URL: http://svn.apache.org/viewvc?view=rev&rev=468055 Log: Portably check for EEXIST in the mktemp code. Submitted by: Kenneth Golomb PR: 40818 * file_io/unix/mktemp.c (gettemp): Use APR_STATUS_IS_EEXIST instead of comparing directly against APR_EEXIST. * CHANGES: Note change. Modified: apr/apr/trunk/CHANGES apr/apr/trunk/file_io/unix/mktemp.c Modified: apr/apr/trunk/CHANGES URL: http://svn.apache.org/viewvc/apr/apr/trunk/CHANGES?view=diff&rev=468055&r1=468054&r2=468055 ============================================================================== --- apr/apr/trunk/CHANGES (original) +++ apr/apr/trunk/CHANGES Thu Oct 26 09:22:52 2006 @@ -1,4 +1,6 @@ Changes for APR 1.3.0 + *) Portably check for EEXIST in mktemp code. PR 40818 + [Kenneth Golomb ] *) Fix apr_socket_recvfrom() to ensure the peer's address is returned through the "from" parameter. [Joe Orton] Modified: apr/apr/trunk/file_io/unix/mktemp.c URL: http://svn.apache.org/viewvc/apr/apr/trunk/file_io/unix/mktemp.c?view=diff&rev=468055&r1=468054&r2=468055 ============================================================================== --- apr/apr/trunk/file_io/unix/mktemp.c (original) +++ apr/apr/trunk/file_io/unix/mktemp.c Thu Oct 26 09:22:52 2006 @@ -142,7 +142,7 @@ if ((rv = apr_file_open(doopen, path, flags, APR_UREAD | APR_UWRITE, p)) == APR_SUCCESS) return APR_SUCCESS; - if (rv != APR_EEXIST) + if (!APR_STATUS_IS_EEXIST(rv)) return rv; /* If we have a collision, cycle through the space of filenames */