]> andersk Git - openssh.git/commitdiff
- (tim) [openbsd-compat/regress/closefromtest.c] Bug 1345: fix open() call.
authortim <tim>
Wed, 25 Jul 2007 03:54:09 +0000 (03:54 +0000)
committertim <tim>
Wed, 25 Jul 2007 03:54:09 +0000 (03:54 +0000)
   Report/patch by David.Leonard AT quest.com

ChangeLog
openbsd-compat/regress/closefromtest.c

index 95e506688013e0ef7965761ebae8dbaf5778fd14..27bd65e6c42fb9147b3822556eec8812e7f38259 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 20070724
  - (tim) [openssh.xml.in] make FMRI match what package scripts use.
+ - (tim) [openbsd-compat/regress/closefromtest.c] Bug 1345: fix open() call.
+   Report/patch by David.Leonard AT quest.com
 
 20070628
  - (djm) bz#1325: Fix SELinux in permissive mode where it would
index feb1b567df8cf5addc0011abf09dbfa33de7fd88..bb129fa160f079a6186e9da594db7c1f78297cfd 100644 (file)
@@ -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;
 
This page took 0.037893 seconds and 5 git commands to generate.