mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
build(deps): bump github.com/pkg/xattr from 0.4.11 to 0.4.12
Bumps [github.com/pkg/xattr](https://github.com/pkg/xattr) from 0.4.11 to 0.4.12. - [Release notes](https://github.com/pkg/xattr/releases) - [Commits](https://github.com/pkg/xattr/compare/v0.4.11...v0.4.12) --- updated-dependencies: - dependency-name: github.com/pkg/xattr dependency-version: 0.4.12 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
2
go.mod
2
go.mod
@@ -67,7 +67,7 @@ require (
|
||||
github.com/opencloud-eu/reva/v2 v2.34.0
|
||||
github.com/orcaman/concurrent-map v1.0.0
|
||||
github.com/pkg/errors v0.9.1
|
||||
github.com/pkg/xattr v0.4.11
|
||||
github.com/pkg/xattr v0.4.12
|
||||
github.com/prometheus/client_golang v1.22.0
|
||||
github.com/r3labs/sse/v2 v2.10.0
|
||||
github.com/riandyrn/otelchi v0.12.1
|
||||
|
||||
4
go.sum
4
go.sum
@@ -904,8 +904,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI=
|
||||
github.com/pkg/term v1.1.0/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
|
||||
github.com/pkg/xattr v0.4.11 h1:DA7usy0rTMNMGvm06b5LhZUwiPj708D89S8DkXpMB1E=
|
||||
github.com/pkg/xattr v0.4.11/go.mod h1:di8WF84zAKk8jzR1UBTEWh9AUlIZZ7M/JNt8e9B6ktU=
|
||||
github.com/pkg/xattr v0.4.12 h1:rRTkSyFNTRElv6pkA3zpjHpQ90p/OdHQC1GmGh1aTjM=
|
||||
github.com/pkg/xattr v0.4.12/go.mod h1:di8WF84zAKk8jzR1UBTEWh9AUlIZZ7M/JNt8e9B6ktU=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U=
|
||||
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
|
||||
42
vendor/github.com/pkg/xattr/xattr_darwin.go
generated
vendored
42
vendor/github.com/pkg/xattr/xattr_darwin.go
generated
vendored
@@ -6,6 +6,7 @@ package xattr
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
"unsafe"
|
||||
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
@@ -37,7 +38,11 @@ func lgetxattr(path string, name string, data []byte) (int, error) {
|
||||
}
|
||||
|
||||
func fgetxattr(f *os.File, name string, data []byte) (int, error) {
|
||||
return getxattr(f.Name(), name, data)
|
||||
path, err := getPath(f)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return getxattr(path, name, data)
|
||||
}
|
||||
|
||||
func setxattr(path string, name string, data []byte, flags int) error {
|
||||
@@ -49,7 +54,11 @@ func lsetxattr(path string, name string, data []byte, flags int) error {
|
||||
}
|
||||
|
||||
func fsetxattr(f *os.File, name string, data []byte, flags int) error {
|
||||
return setxattr(f.Name(), name, data, flags)
|
||||
path, err := getPath(f)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return setxattr(path, name, data, flags)
|
||||
}
|
||||
|
||||
func removexattr(path string, name string) error {
|
||||
@@ -61,7 +70,11 @@ func lremovexattr(path string, name string) error {
|
||||
}
|
||||
|
||||
func fremovexattr(f *os.File, name string) error {
|
||||
return removexattr(f.Name(), name)
|
||||
path, err := getPath(f)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return removexattr(path, name)
|
||||
}
|
||||
|
||||
func listxattr(path string, data []byte) (int, error) {
|
||||
@@ -73,7 +86,28 @@ func llistxattr(path string, data []byte) (int, error) {
|
||||
}
|
||||
|
||||
func flistxattr(f *os.File, data []byte) (int, error) {
|
||||
return listxattr(f.Name(), data)
|
||||
path, err := getPath(f)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return listxattr(path, data)
|
||||
}
|
||||
|
||||
// getPath returns the full path to the specified file.
|
||||
func getPath(f *os.File) (string, error) {
|
||||
var buf [unix.PathMax]byte
|
||||
_, _, err := unix.Syscall(unix.SYS_FCNTL,
|
||||
uintptr(int(f.Fd())),
|
||||
uintptr(unix.F_GETPATH),
|
||||
uintptr(unsafe.Pointer(&buf[0])))
|
||||
if err != 0 {
|
||||
return "", err
|
||||
}
|
||||
n := 0
|
||||
for n < len(buf) && buf[n] != 0 {
|
||||
n++
|
||||
}
|
||||
return string(buf[:n]), nil
|
||||
}
|
||||
|
||||
// stringsFromByteSlice converts a sequence of attributes to a []string.
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -1637,7 +1637,7 @@ github.com/pjbgf/sha1cd/ubc
|
||||
# github.com/pkg/errors v0.9.1
|
||||
## explicit
|
||||
github.com/pkg/errors
|
||||
# github.com/pkg/xattr v0.4.11
|
||||
# github.com/pkg/xattr v0.4.12
|
||||
## explicit; go 1.14
|
||||
github.com/pkg/xattr
|
||||
# github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2
|
||||
|
||||
Reference in New Issue
Block a user