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