[CIFS] For previous fix, mode on mkdir needed S_IFDIR left out.
authorSteve French <sfrench@us.ibm.com>
Wed, 30 Nov 2005 06:38:43 +0000 (22:38 -0800)
committerSteve French <sfrench@us.ibm.com>
Wed, 30 Nov 2005 06:38:43 +0000 (22:38 -0800)
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c

index e8773461c7f76d53be96eb935f88d807b203f376..411c1f7f84da6074efd483e27df1221db4647df1 100644 (file)
@@ -770,6 +770,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode)
                                                 -1, -1, local_nls); */
                        if(direntry->d_inode) {
                                direntry->d_inode->i_mode = mode;
+                               direntry->d_inode->i_mode |= S_IFDIR;
                                if(cifs_sb->mnt_cifs_flags & 
                                     CIFS_MOUNT_SET_UID) {
                                        direntry->d_inode->i_uid =