Fix constructing string from attrval setxattr config (#1508)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
trapexit 2025-08-11 20:50:12 -04:00 • committed by GitHub
parent 24e778b95a
commit df19f99976
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -97,7 +97,7 @@ _setxattr_ctrl_file(const char *attrname_,
if((flags_ & XATTR_CREATE) == XATTR_CREATE)
return -EEXIST;
rv = cfg->set(key,attrval_);
rv = cfg->set(key,std::string{attrval_,attrvalsize_});
if(rv < 0)
return rv;