Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a8cd925f74c3b1b6d1192f9e75f9d12cc2ab148a
Commit:     a8cd925f74c3b1b6d1192f9e75f9d12cc2ab148a
Parent:     4efa53f0907bb4378015c129a2c11b8d3a90bce2
Author:     Jeff <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 13 18:38:50 2007 +0000
Committer:  Steve French <[EMAIL PROTECTED]>
CommitDate: Thu Sep 13 18:38:50 2007 +0000

    [CIFS] Respect umask when using POSIX mkdir
    
    When making a directory with POSIX mkdir calls, cifs_mkdir does not
    respect the umask.  This patch causes the new POSIX mkdir to create with
    the right mode
    
    Signed-off-by: Jeff Layton <[EMAIL PROTECTED]>
    Signed-off-by: Steve French <[EMAIL PROTECTED]>
---
 fs/cifs/inode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 66436f5..e800c0e 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -919,6 +919,7 @@ int cifs_mkdir(struct inode *inode, struct dentry 
*direntry, int mode)
                        goto mkdir_out;
                }
 
+               mode &= ~current->fs->umask;
                rc = CIFSPOSIXCreate(xid, pTcon, SMB_O_DIRECTORY | SMB_O_CREAT,
                                mode, NULL /* netfid */, pInfo, &oplock,
                                full_path, cifs_sb->local_nls,
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to