Skip to content

Commit 25741b3

Browse files
author
Steve French
committed
[CIFS] For previous fix, mode on mkdir needed S_IFDIR left out.
Signed-off-by: Steve French <[email protected]>
1 parent 2a138eb commit 25741b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/cifs/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
770770
-1, -1, local_nls); */
771771
if(direntry->d_inode) {
772772
direntry->d_inode->i_mode = mode;
773+
direntry->d_inode->i_mode |= S_IFDIR;
773774
if(cifs_sb->mnt_cifs_flags &
774775
CIFS_MOUNT_SET_UID) {
775776
direntry->d_inode->i_uid =

0 commit comments

Comments
 (0)