diff options
-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 9c40eb4..591b3b6 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); + ret = open (NOWRITE, O_CREAT | O_RDONLY, S_IRUSR | S_IWUSR); if (ret >= 0) { close (ret); |