--- source3/modules/vfs_streams_depot.c.orig 2017-11-28 09:13:51.391460933 -0700 +++ source3/modules/vfs_streams_depot.c 2017-11-28 09:15:00.271459681 -0700 @@ -290,7 +290,7 @@ goto fail; } - if ((SMB_VFS_NEXT_MKDIR(handle, rootdir_fname, 0755) != 0) + if ((SMB_VFS_NEXT_MKDIR(handle, rootdir_fname, 01777) != 0) && (errno != EEXIST)) { goto fail; } @@ -311,7 +311,7 @@ goto fail; } - if ((SMB_VFS_NEXT_MKDIR(handle, tmp_fname, 0755) != 0) + if ((SMB_VFS_NEXT_MKDIR(handle, tmp_fname, 01777) != 0) && (errno != EEXIST)) { goto fail; } @@ -336,7 +336,7 @@ goto fail; } - if ((SMB_VFS_NEXT_MKDIR(handle, tmp_fname, 0755) != 0) + if ((SMB_VFS_NEXT_MKDIR(handle, tmp_fname, 01777) != 0) && (errno != EEXIST)) { goto fail; } @@ -345,7 +345,7 @@ TALLOC_FREE(tmp_fname); /* smb_fname_hash is the struct smb_filename version of 'result' */ - if ((SMB_VFS_NEXT_MKDIR(handle, smb_fname_hash, 0755) != 0) + if ((SMB_VFS_NEXT_MKDIR(handle, smb_fname_hash, 01777) != 0) && (errno != EEXIST)) { goto fail; }