1
0
mirror of https://github.com/minio/mc.git synced 2025-11-10 13:42:32 +03:00

Large MC Update (new encryption flags, functional test suite, removal of session code, minor cleanup, vuln. updates ) (#4882)

This commit is contained in:
Sveinn
2024-04-15 10:10:25 -05:00
committed by GitHub
parent e701bce12c
commit fe58afcd39
49 changed files with 3674 additions and 5970 deletions

View File

@@ -68,8 +68,7 @@ func IsDeleteEvent(event notify.Event) bool {
return false
}
// getXAttr fetches the extended attribute for a particular key on
// file
// getXAttr fetches the extended attribute for a particular key on file
func getXAttr(path, key string) (string, error) {
data, e := xattr.Get(path, key)
if e != nil {
@@ -81,8 +80,7 @@ func getXAttr(path, key string) (string, error) {
return hex.EncodeToString(data), nil
}
// getAllXattrs returns the extended attributes for a file if supported
// by the OS
// getAllXattrs returns the extended attributes for a file if supported by the OS
func getAllXattrs(path string) (map[string]string, error) {
xMetadata := make(map[string]string)
list, e := xattr.List(path)