sometimes opebsd-compat/regress/closefromtest fails with closefrom: closed descriptors it should not have (On Red Hat EL 3 x86_64) This is because /dev/null is not being opened for read properly. --- openssh/openbsd-compat/regress/closefromtest.c (revision 160) +++ openssh/openbsd-compat/regress/closefromtest.c (working copy) @@ -38,7 +38,7 @@ 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;
Nice catch. The fix should show up in the next snapshot.
(In reply to comment #1) > Nice catch. The fix should show up in the next snapshot. In the interests of fairness: Bernard Simon also reported this to me a while back. So, credit to him too, and an anti-credit to me for slacking.
Close resolved bugs after release.