summaryrefslogtreecommitdiff
path: root/fs/9p/acl.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2017-08-23 14:48:14 +1000
committerSteve French <smfrench@gmail.com>2017-08-23 13:34:52 -0500
commitd3edede29f74d335f81d95a4588f5f136a9f7dcf (patch)
tree391465f2a1f199a8e5b789faca7556dac3b1ecc9 /fs/9p/acl.h
parent42bec214d8bd432be6d32a1acb0a9079ecd4d142 (diff)
cifs: return ENAMETOOLONG for overlong names in cifs_open()/cifs_lookup()
Add checking for the path component length and verify it is <= the maximum that the server advertizes via FileFsAttributeInformation. With this patch cifs.ko will now return ENAMETOOLONG instead of ENOENT when users to access an overlong path. To test this, try to cd into a (non-existing) directory on a CIFS share that has a too long name: cd /mnt/aaaaaaaaaaaaaaa... and it now should show a good error message from the shell: bash: cd: /mnt/aaaaaaaaaaaaaaaa...aaaaaa: File name too long rh bz 1153996 Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <smfrench@gmail.com> Cc: <stable@vger.kernel.org>
Diffstat (limited to 'fs/9p/acl.h')
0 files changed, 0 insertions, 0 deletions