Whitelist files and block devices instead of blacklisting fifos and
character devices.
Fix a bug that was found by the clang static analyzer. The var "AT" is null so we cant deref it.