`open` and `mkdir` are supposed to apply the the umask value to the permissions of newly created files and directories.