2004-01-07 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Wed, 7 Jan 2004 16:02:27 +0000 (16:02 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 7 Jan 2004 16:02:27 +0000 (16:02 +0000)
* gdb.base/fileio.c (test_open): Do not pass S_IWUSR to "open"
when creating the read-only file.  From analysis by Roland McGrath
and Elena Zannoni.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/fileio.c

index 8bf26a55a7c2eac6214028c2ccea891337139549..1b9bf82182df8179d99bb97e77d82ae2b1e33890 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-07  Andrew Cagney  <cagney@redhat.com>
+
+       * gdb.base/fileio.c (test_open): Do not pass S_IWUSR to "open"
+       when creating the read-only file.  From analysis by Roland McGrath
+       and Elena Zannoni.
+
 2004-01-06  Michael Chastain  <mec.gnu@mindspring.com>
 
        * gdb.cp/namespace.exp: Call get_compiler_info with "c++".
index 591b3b67588921ceb513b6ba9655dc0599526149..9c40eb4d3968a20d98a2a747814fdfaac736f8d9 100644 (file)
@@ -103,7 +103,7 @@ test_open ()
     close (ret);
   /* Open for write but no write permission */
   errno = 0;
-  ret = open (NOWRITE, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR);
+  ret = open (NOWRITE, O_CREAT | O_RDONLY, S_IRUSR);
   if (ret >= 0)
     {
       close (ret);
This page took 0.033241 seconds and 4 git commands to generate.