# HG changeset patch # User Timo Sirainen # Date 1223203651 -10800 # Node ID 3e493fd3a9faeeec5b9d325f5e6427b3c141ebe1 # Parent fe97a84145f9a44a6226fd9f37f8abdff3827df5 configure: create test files with mode 0600. 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 @@ #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 @@ 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;