dovecot-1.2: configure: create test files with mode 0600.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 5 13:49:37 EEST 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/3e493fd3a9fa
changeset: 8226:3e493fd3a9fa
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 05 13:47:31 2008 +0300
description:
configure: create test files with mode 0600.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
configure.in | 4 ++--
diffs (21 lines):
diff -r fe97a84145f9 -r 3e493fd3a9fa configure.in
--- a/configure.in Sun Oct 05 13:32:55 2008 +0300
+++ b/configure.in Sun Oct 05 13:47:31 2008 +0300
@@ -1150,7 +1150,7 @@ AC_CACHE_CHECK([whether shared mmaps get
#include <sys/mman.h>
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
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;
More information about the dovecot-cvs
mailing list