aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/link.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/link.c')
-rw-r--r--fs/cifs/link.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/cifs/link.c b/fs/cifs/link.c
index e17a092f43ec..eb2fbbe865d2 100644
--- a/fs/cifs/link.c
+++ b/fs/cifs/link.c
@@ -257,13 +257,8 @@ cifs_readlink(struct dentry *direntry, char __user *pBuffer, int buflen)
257 257
258/* BB add read reparse point symlink code and 258/* BB add read reparse point symlink code and
259 Unix extensions symlink code here BB */ 259 Unix extensions symlink code here BB */
260/* We could disable this based on pTcon->unix_ext flag instead ... but why? */ 260
261 if (cifs_sb->tcon->ses->capabilities & CAP_UNIX) 261 if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {
262 rc = CIFSSMBUnixQuerySymLink(xid, pTcon, full_path,
263 tmpbuffer,
264 len - 1,
265 cifs_sb->local_nls);
266 else if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_UNX_EMUL) {
267 cERROR(1, ("SFU style symlinks not implemented yet")); 262 cERROR(1, ("SFU style symlinks not implemented yet"));
268 /* add open and read as in fs/cifs/inode.c */ 263 /* add open and read as in fs/cifs/inode.c */
269 } else { 264 } else {