From: Andrew Cagney Date: Wed, 7 Jan 2004 16:02:27 +0000 (+0000) Subject: 2004-01-07 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c9b8f3352e30328717399ad128d7284ba10361a;p=binutils-gdb.git 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. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8bf26a55a7c..1b9bf82182d 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 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);