]> git.karo-electronics.de Git - karo-tx-linux.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)
commitd9a15489210f3c25de39dee85861352d5e79e9c5
tree2e968785470da2c194699b9f88370ea90a9f5695
parentce23e640133484eebc20ca7b7668388213e11327
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