update vendor

This commit is contained in:
Ettore Di Giacinto
2021-10-24 01:18:02 +02:00
parent ebbb3aad27
commit 063f704057
246 changed files with 7 additions and 40932 deletions

View File

@@ -1,21 +0,0 @@
// +build linux
package mtree
import (
"encoding/base64"
"os"
"github.com/vbatts/go-mtree/xattr"
)
func xattrUpdateKeywordFunc(path string, kv KeyVal) (os.FileInfo, error) {
buf, err := base64.StdEncoding.DecodeString(kv.Value())
if err != nil {
return nil, err
}
if err := xattr.Set(path, kv.Keyword().Suffix(), buf); err != nil {
return nil, err
}
return os.Lstat(path)
}