dovecot-1.1: configure: create test files with mode 0600.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 5 13:49:35 EEST 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/0fa3d8c5247d
changeset: 7902:0fa3d8c5247d
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 05 13:47:15 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 a5bf7e12f3cc -r 0fa3d8c5247d configure.in
--- a/configure.in Sun Oct 05 13:32:00 2008 +0300
+++ b/configure.in Sun Oct 05 13:47:15 2008 +0300
@@ -1136,7 +1136,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()");
@@ -1191,7 +1191,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