Commit fd19c501 authored by Pavel Shilovsky's avatar Pavel Shilovsky

Fix share flags' shift during creating for centos55

parent 8b9b44bb
...@@ -332,7 +332,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode, ...@@ -332,7 +332,7 @@ cifs_create(struct inode *inode, struct dentry *direntry, int mode,
if (cifs_sb->tcon->ses->capabilities & CAP_NT_SMBS) if (cifs_sb->tcon->ses->capabilities & CAP_NT_SMBS)
rc = CIFSSMBOpen(xid, tcon, full_path, disposition, rc = CIFSSMBOpen(xid, tcon, full_path, disposition,
desiredAccess, ~((oflags>>21) & 7), create_options, desiredAccess, ((~(oflags>>21))&7), create_options,
&fileHandle, &oplock, buf, cifs_sb->local_nls, &fileHandle, &oplock, buf, cifs_sb->local_nls,
cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR);
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment