mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-26 21:40:38 +00:00
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.
This commit is contained in:
parent
9f9057daef
commit
1c9b8f3352
@ -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++".
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user