diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | openbsd-compat/regress/closefromtest.c | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -1,5 +1,7 @@ | |||
1 | 20070724 | 1 | 20070724 |
2 | - (tim) [openssh.xml.in] make FMRI match what package scripts use. | 2 | - (tim) [openssh.xml.in] make FMRI match what package scripts use. |
3 | - (tim) [openbsd-compat/regress/closefromtest.c] Bug 1345: fix open() call. | ||
4 | Report/patch by David.Leonard AT quest.com | ||
3 | 5 | ||
4 | 20070628 | 6 | 20070628 |
5 | - (djm) bz#1325: Fix SELinux in permissive mode where it would | 7 | - (djm) bz#1325: Fix SELinux in permissive mode where it would |
@@ -3112,4 +3114,4 @@ | |||
3112 | OpenServer 6 and add osr5bigcrypt support so when someone migrates | 3114 | OpenServer 6 and add osr5bigcrypt support so when someone migrates |
3113 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ | 3115 | passwords between UnixWare and OpenServer they will still work. OK dtucker@ |
3114 | 3116 | ||
3115 | $Id: ChangeLog,v 1.4712 2007/07/24 20:13:42 tim Exp $ | 3117 | $Id: ChangeLog,v 1.4713 2007/07/25 03:54:09 tim Exp $ |
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 | ||