Handle open() failures better on certain device nodes.
It would be safer to stat() before open(), but is there a way to do so without a TOCTOU race that's a root hole? (Not that there'll be many users on shared systems trying to exploit this particular program...)
parent
1dec7d89
Please register or sign in to comment