diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c index e937da7522ef..461750e01364 100644 --- a/fs/cifs/dir.c +++ b/fs/cifs/dir.c | |||
@@ -661,7 +661,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct dentry *direntry, | |||
661 | if (!((nd->intent.open.flags & O_CREAT) && | 661 | if (!((nd->intent.open.flags & O_CREAT) && |
662 | (nd->intent.open.flags & O_EXCL))) { | 662 | (nd->intent.open.flags & O_EXCL))) { |
663 | mode = nd->intent.open.create_mode & | 663 | mode = nd->intent.open.create_mode & |
664 | ~current->fs->umask; | 664 | ~current_umask(); |
665 | rc = cifs_posix_open(full_path, &newInode, | 665 | rc = cifs_posix_open(full_path, &newInode, |
666 | parent_dir_inode->i_sb, mode, | 666 | parent_dir_inode->i_sb, mode, |
667 | nd->intent.open.flags, &oplock, | 667 | nd->intent.open.flags, &oplock, |