diff options
author | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:40:29 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2009-12-29 21:40:29 +0000 |
commit | a25ec0b132c44c9e341e08464ff830de06b81126 (patch) | |
tree | e20842d80f9e25cb6cf09525abea63f7bf655dd7 /openbsd-compat/regress/closefromtest.c | |
parent | 1b816ea846aca3ee89e7995373ace609e9518424 (diff) | |
parent | 70847d299887abb96f8703ca99db6d817b78960e (diff) |
import openssh-4.7p1-gsskex-20070927.patch
Diffstat (limited to 'openbsd-compat/regress/closefromtest.c')
-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 | ||