diff options
author | Tim Rice <tim@multitalents.net> | 2007-07-24 20:54:09 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2007-07-24 20:54:09 -0700 |
commit | bf0212d1b751fa6f6844607b2bd12544b0ed90e4 (patch) | |
tree | 424a569d041c33f0b3b4ca10df2a8a7416889373 /openbsd-compat | |
parent | 947fd59f7a086f197f72da8a01b71adaedce9082 (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')
-rw-r--r-- | openbsd-compat/regress/closefromtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd-compat/regress/closefromtest.c b/openbsd-compat/regress/closefromtest.c index feb1b567d..bb129fa16 100644 --- a/openbsd-compat/regress/closefromtest.c +++ b/openbsd-compat/regress/closefromtest.c | |||
@@ -38,7 +38,7 @@ main(void) | |||
38 | char buf[512]; | 38 | char buf[512]; |
39 | 39 | ||
40 | for (i = 0; i < NUM_OPENS; i++) | 40 | for (i = 0; i < NUM_OPENS; i++) |
41 | if ((fds[i] = open("/dev/null", "r")) == -1) | 41 | if ((fds[i] = open("/dev/null", O_RDONLY)) == -1) |
42 | exit(0); /* can't test */ | 42 | exit(0); /* can't test */ |
43 | max = i - 1; | 43 | max = i - 1; |
44 | 44 | ||