This project is archived. Its data is
read-only
.
Make the behavior for using _SC_OPEN_MAX vaguely sensible.
This code is one big logic error. See proposed fix.