diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-01-07 16:02:27 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-01-07 16:02:27 +0000 |
commit | 1c9b8f3352e30328717399ad128d7284ba10361a (patch) | |
tree | 2804de0ee94e05d52581f09ac23953d26e2638b6 /gdb | |
parent | 9f9057daeff42378383f399a6dce0b7958df5c3f (diff) | |
download | gdb-1c9b8f3352e30328717399ad128d7284ba10361a.zip gdb-1c9b8f3352e30328717399ad128d7284ba10361a.tar.gz gdb-1c9b8f3352e30328717399ad128d7284ba10361a.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/fileio.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8bf26a5..1b9bf82 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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++". diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c index 591b3b6..9c40eb4 100644 --- a/gdb/testsuite/gdb.base/fileio.c +++ b/gdb/testsuite/gdb.base/fileio.c @@ -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); |