FIX: open() with O_CREAT requires mode to be set
FIX: Coverity Defect 56524