changeset 8226:3e493fd3a9fa HEAD

configure: create test files with mode 0600.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Oct 2008 13:47:31 +0300
parents fe97a84145f9
children 9886bf0a4c40
files configure.in
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 <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 @@
 	      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;