apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r553655 - in /apr/apr/branches/1.2.x: CHANGES configure.in
Date Thu, 05 Jul 2007 22:07:03 GMT
Author: davi
Date: Thu Jul  5 15:07:03 2007
New Revision: 553655

URL: http://svn.apache.org/viewvc?view=rev&rev=553655
Log:
Backport 553652 from trunk:

open(2) reads: mode must be specified when O_CREAT is in the flags.

Submitted by: Rainer Jung <rainer.jung kippdata.de>
PR: 42821

Modified:
    apr/apr/branches/1.2.x/CHANGES
    apr/apr/branches/1.2.x/configure.in

Modified: apr/apr/branches/1.2.x/CHANGES
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/CHANGES?view=diff&rev=553655&r1=553654&r2=553655
==============================================================================
--- apr/apr/branches/1.2.x/CHANGES (original)
+++ apr/apr/branches/1.2.x/CHANGES Thu Jul  5 15:07:03 2007
@@ -1,5 +1,9 @@
 Changes for APR 1.2.10
 
+  *) Fix LFS detection when building over NFS. The mode must be
+     specified when O_CREAT is in the flags to open().
+     PR 42821.  [Rainer Jung <rainer.jung kippdata.de>]
+
   *) Avoid overwriting the hash_mutex table for applications that
      incorrectly calls apr_atomic_init().  PR 42760.  [Davi Arnaut]
 

Modified: apr/apr/branches/1.2.x/configure.in
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.2.x/configure.in?view=diff&rev=553655&r1=553654&r2=553655
==============================================================================
--- apr/apr/branches/1.2.x/configure.in (original)
+++ apr/apr/branches/1.2.x/configure.in Thu Jul  5 15:07:03 2007
@@ -448,7 +448,7 @@
 
     if (sizeof(off64_t) != 8 || sizeof(off_t) != 4)
        exit(1);
-    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY)) < 0)
+    if ((fd = open("conftest.lfs", O_LARGEFILE|O_CREAT|O_WRONLY, 0644)) < 0)
        exit(2);
     if (ftruncate64(fd, off) != 0)
        ret = 3;



Mime
View raw message