aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorPaulo Alcantara <[email protected]>2018-05-04 14:25:26 +0000
committerSteve French <[email protected]>2018-05-09 16:48:42 +0000
commitae2cd7fb478b8da707906ee1706ae1379968a8f9 (patch)
tree1884c6ee363e9f0067ba11f791744e2767f25076 /fs/proc/array.c
parentcifs: smbd: Enable signing with smbdirect (diff)
downloadkernel-ae2cd7fb478b8da707906ee1706ae1379968a8f9.tar.gz
kernel-ae2cd7fb478b8da707906ee1706ae1379968a8f9.zip
cifs: smb2ops: Fix listxattr() when there are no EAs
As per listxattr(2): On success, a nonnegative number is returned indicating the size of the extended attribute name list. On failure, -1 is returned and errno is set appropriately. In SMB1, when the server returns an empty EA list through a listxattr(), it will correctly return 0 as there are no EAs for the given file. However, in SMB2+, it returns -ENODATA in listxattr() which is wrong since the request and response were sent successfully, although there's no actual EA for the given file. This patch fixes listxattr() for SMB2+ by returning 0 in cifs_listxattr() when the server returns an empty list of EAs. Signed-off-by: Paulo Alcantara <[email protected]> Reviewed-by: Aurelien Aptel <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions