]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Fix xattr name checks
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 13 Apr 2016 22:30:13 +0000 (00:30 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 23 Apr 2016 19:33:03 +0000 (15:33 -0400)
commit0a80c7b838fc89572539728ec9914ff811e8460c
tree2e968785470da2c194699b9f88370ea90a9f5695
parent23d59216a62f74ae8561515ab844e083282730fe
cifs: Fix xattr name checks

Use strcmp(str, name) instead of strncmp(str, name, strlen(name)) for
checking if str and name are the same (as opposed to name being a prefix
of str) in the gexattr and setxattr inode operations.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/cifs/xattr.c