From 6e64ec2ee3c71b15772fc953cefba35b905066f2 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Sat, 2 Jun 2007 01:55:30 +0000
Subject: [PATCH] Attempt to fix a test failure on Solaris (open fails with
 EACCES).

---
 ChangeLog              | 6 ++++++
 tests/test-binary-io.c | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index a68b1e9965..b79f1dfb99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-01  Bruno Haible  <bruno@clisp.org>
+
+	* tests/test-binary-io.c (main): Pass a third argument to open().
+	Reported by Gary V. Vaughan <gary@gnu.org>.
+
 2007-06-01  Bruno Haible  <bruno@clisp.org>
 
 	* doc/functions/frexpl.texi: Update for mingw.
@@ -7,6 +12,7 @@
 	* tests/test-lseek.c (main): Disable test of errno for invalid third
 	argument.
 	* doc/functions/lseek.texi: Update.
+	Reported by Gary V. Vaughan <gary@gnu.org>.
 
 2007-05-28  Bruno Haible  <bruno@clisp.org>
 
diff --git a/tests/test-binary-io.c b/tests/test-binary-io.c
index 98fe3e192a..7a0fa5db9e 100644
--- a/tests/test-binary-io.c
+++ b/tests/test-binary-io.c
@@ -44,7 +44,8 @@ main ()
 {
   /* Test the O_BINARY macro.  */
   {
-    int fd = open ("t-bin-out2.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY);
+    int fd =
+      open ("t-bin-out2.tmp", O_CREAT | O_TRUNC | O_RDWR | O_BINARY, 0600);
     if (write (fd, "Hello\n", 6) < 0)
       exit (1);
     close (fd);
-- 
2.30.2