Fixes: #1364 can't chmod file descriptor