diff options
author | Davi Arnaut <davi@apache.org> | 2007-07-05 21:59:18 +0000 |
---|---|---|
committer | Davi Arnaut <davi@apache.org> | 2007-07-05 21:59:18 +0000 |
commit | cdc61a8bd79e6b4e38a5c36d3695c2aba8369360 (patch) | |
tree | ad88f0f0b5b2eeaedba323e65d1176b600cb5146 | |
parent | 02d5f1df7fc6ef8426202956f0075a60808ba257 (diff) | |
download | apr-cdc61a8bd79e6b4e38a5c36d3695c2aba8369360.tar.gz |
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: https://svn.apache.org/repos/asf/apr/apr/trunk@553652 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | configure.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.in b/configure.in index ce4250131..4ee1b6512 100644 --- a/configure.in +++ b/configure.in @@ -507,7 +507,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; |