diff options
author | Tim Rice <tim@multitalents.net> | 2007-07-25 05:54:09 +0200 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2007-07-25 05:54:09 +0200 |
commit | bf0212d1b751fa6f6844607b2bd12544b0ed90e4 (patch) | |
tree | 424a569d041c33f0b3b4ca10df2a8a7416889373 /openbsd-compat/regress | |
parent | - (tim) [openssh.xml.in] make FMRI match what package scripts use. (diff) | |
download | openssh-bf0212d1b751fa6f6844607b2bd12544b0ed90e4.tar.xz openssh-bf0212d1b751fa6f6844607b2bd12544b0ed90e4.zip |
- (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.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) 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; |