summaryrefslogtreecommitdiff
path: root/openbsd-compat/regress
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2007-07-24 20:54:09 -0700
committerTim Rice <tim@multitalents.net>2007-07-24 20:54:09 -0700
commitbf0212d1b751fa6f6844607b2bd12544b0ed90e4 (patch)
tree424a569d041c33f0b3b4ca10df2a8a7416889373 /openbsd-compat/regress
parent947fd59f7a086f197f72da8a01b71adaedce9082 (diff)
- (tim) [openbsd-compat/regress/closefromtest.c] Bug 1345: fix open() call.
Report/patch by David.Leonard AT quest.com
Diffstat (limited to 'openbsd-compat/regress')
-rw-r--r--openbsd-compat/regress/closefromtest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/regress/closefromtest.c b/openbsd-compat/regress/closefromtest.c
index feb1b567..bb129fa1 100644
--- a/openbsd-compat/regress/closefromtest.c
+++ b/openbsd-compat/regress/closefromtest.c
@@ -38,7 +38,7 @@ main(void)
char buf[512];
for (i = 0; i < NUM_OPENS; i++)
- if ((fds[i] = open("/dev/null", "r")) == -1)
+ if ((fds[i] = open("/dev/null", O_RDONLY)) == -1)
exit(0); /* can't test */
max = i - 1;