Fixed a bug in cvmfs_listxattr that was causing it to return a null
string in the middle of the list of extended attributes for regular
files.
Merge branch 'hotfix/2.1.11-jrandall-listxattr'
Merge pull request #159 from wtsi-hgi/master

Fix to cvmfs_listxattr



The listxattr fuse function (cvmfs_listxattr) returns a list that contains an entry with a null string for regular files, which causes some xattr programs that don't check for this to error out when they subsequently do a getxattr on the empty string. This is because when the C++ std:string objects are constructed, the sizeof the char[] contains the terminating null in addition to the null explicitly within the string.

This fix changes the two instances of sizeof(char[]) to be sizeof(char[])-1 to address this issue.