mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Rework string utils, more test cases
This commit is contained in:
parent
107a3acf95
commit
3a45be4cd8
8 changed files with 371 additions and 206 deletions
|
|
@ -90,8 +90,8 @@ fs::xattr::list(const int fd_,
|
|||
rv = fs::xattr::list(fd_,&attrs);
|
||||
if(rv > 0)
|
||||
{
|
||||
string tmp(attrs.begin(),attrs.end());
|
||||
str::split(tmp,'\0',attrvector_);
|
||||
string tmp(attrs.begin(),attrs.end());
|
||||
*attrvector_ = str::split(tmp,'\0');
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
@ -107,8 +107,8 @@ fs::xattr::list(const string &path_,
|
|||
rv = fs::xattr::list(path_,&attrs);
|
||||
if(rv > 0)
|
||||
{
|
||||
string tmp(attrs.begin(),attrs.end());
|
||||
str::split(tmp,'\0',attrvector_);
|
||||
string tmp(attrs.begin(),attrs.end());
|
||||
*attrvector_ = str::split(tmp,'\0');
|
||||
}
|
||||
|
||||
return rv;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue