From: Timo Sirainen Date: Sun, 5 Oct 2008 10:47:31 +0000 (+0300) Subject: configure: create test files with mode 0600. X-Git-Tag: 1.2.alpha2~22 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9fbc7e551bce5ad44d919021de26b47c3c07378;p=thirdparty%2Fdovecot%2Fcore.git configure: create test files with mode 0600. --HG-- branch : HEAD --- diff --git a/configure.in b/configure.in index 79fec87e23..15d1e44aa1 100644 --- a/configure.in +++ b/configure.in @@ -1150,7 +1150,7 @@ AC_CACHE_CHECK([whether shared mmaps get updated by write()s],i_cv_mmap_plays_wi #include int main() { /* return 0 if we're signed */ - int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC); + int f = open("conftest.mmap", O_RDWR|O_CREAT|O_TRUNC, 0600); void *mem; if (f == -1) { perror("open()"); @@ -1205,7 +1205,7 @@ AC_CACHE_CHECK([whether fd passing works],i_cv_fd_passing,[ struct stat st, st2; char data; - send_fd = open("conftest.fdpass", O_CREAT|O_WRONLY); + send_fd = creat("conftest.fdpass", 0600); if (send_fd == -1) return 2; unlink("conftest.fdpass"); if (fstat(send_fd, &st) < 0) return 2;