From 1599d204d738d89045e9c0ff1438d6bf43926308 Mon Sep 17 00:00:00 2001 From: cagney Date: Wed, 7 Jan 2004 16:02:26 +0000 Subject: [PATCH] 2004-01-07 Andrew Cagney * 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 | 6 ++++++ gdb/testsuite/gdb.base/fileio.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8bf26a55a7..1b9bf82182 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2004-01-07 Andrew Cagney + + * 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 * 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 591b3b6758..9c40eb4d39 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); -- 2.11.0