Should use chmod() on a file, not fchmod() Fixes #9683 Closes #9802 (cherry picked from commit 7064ae3d90)
7064ae3d90