mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
* gdb.base/fileio.c (test_open): Replace O_RDONLY with O_RDWR such
that opening the file succeeds on OpenBSD.
This commit is contained in:
@@ -75,7 +75,7 @@ test_open ()
|
||||
|
||||
/* Test opening */
|
||||
errno = 0;
|
||||
ret = open (FILENAME, O_CREAT | O_TRUNC | O_RDONLY, S_IWUSR | S_IRUSR);
|
||||
ret = open (FILENAME, O_CREAT | O_TRUNC | O_RDWR, S_IWUSR | S_IRUSR);
|
||||
printf ("open 1: ret = %d, errno = %d %s\n", ret, errno,
|
||||
ret >= 0 ? "OK" : "");
|
||||
if (ret >= 0)
|
||||
|
||||
Reference in New Issue
Block a user