diff options
author | davi <davi@13f79535-47bb-0310-9956-ffa450edef68> | 2007-07-05 22:07:03 +0000 |
---|---|---|
committer | davi <davi@13f79535-47bb-0310-9956-ffa450edef68> | 2007-07-05 22:07:03 +0000 |
commit | 1ac1baefaa5ceebb6bd0db1653772288290660fe (patch) | |
tree | 84ee28127a3d3fb11262de8cc003c26a135f4f10 | |
parent | 048fd124c51785d138037255f2c01ab894d253ca (diff) | |
download | libapr-1ac1baefaa5ceebb6bd0db1653772288290660fe.tar.gz |
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
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.2.x@553655 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | CHANGES | 4 | ||||
-rw-r--r-- | configure.in | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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] diff --git a/configure.in b/configure.in index 75ac520d0..15b44eb4b 100644 --- a/configure.in +++ b/configure.in @@ -448,7 +448,7 @@ void main(void) 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; |