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/testsuite/gdb.base | |
parent | 9f9057daeff42378383f399a6dce0b7958df5c3f (diff) | |
download | binutils-gdb-1c9b8f3352e30328717399ad128d7284ba10361a.tar.gz |
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/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c index 591b3b67588..9c40eb4d396 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); |