From 11e824bd13a03ad092dc2a8675752ba2f1ad3662 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 2 Feb 2023 12:44:12 +0100 Subject: [PATCH] Update go-acl --- go.mod | 2 +- go.sum | 4 ++-- vendor/github.com/hectane/go-acl/api/acl.go | 4 ++-- vendor/github.com/hectane/go-acl/api/secinfo.go | 8 ++++---- vendor/modules.txt | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index aed96a8d..1ebf099e 100644 --- a/go.mod +++ b/go.mod @@ -9,7 +9,7 @@ require ( github.com/dchest/safefile v0.0.0-20151022103144-855e8d98f185 github.com/hashicorp/go-immutable-radix v1.3.1 github.com/hashicorp/golang-lru v0.5.4 - github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95 + github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb github.com/jedisct1/dlog v0.0.0-20210927135244-3381aa132e7f github.com/jedisct1/go-clocksmith v0.0.0-20210101121932-da382b963868 github.com/jedisct1/go-dnsstamps v0.0.0-20220328103132-6fb2da762370 diff --git a/go.sum b/go.sum index c165a340..b3d2fb40 100644 --- a/go.sum +++ b/go.sum @@ -347,8 +347,8 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= -github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95 h1:S4qyfL2sEm5Budr4KVMyEniCy+PbS55651I/a+Kn/NQ= -github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95/go.mod h1:QiyDdbZLaJ/mZP4Zwc9g2QsfaEA4o7XvvgZegSci5/E= +github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb h1:PGufWXXDq9yaev6xX1YQauaO1MV90e6Mpoq1I7Lz/VM= +github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb/go.mod h1:QiyDdbZLaJ/mZP4Zwc9g2QsfaEA4o7XvvgZegSci5/E= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/huandu/xstrings v1.0.0/go.mod h1:4qWG/gcEcfX4z/mBDHJ++3ReCw9ibxbsNJbcucJdbSo= github.com/huandu/xstrings v1.2.0/go.mod h1:DvyZB1rfVYsBIigL8HwpZgxHwXozlTgGqn63UyNX5k4= diff --git a/vendor/github.com/hectane/go-acl/api/acl.go b/vendor/github.com/hectane/go-acl/api/acl.go index 756f56ad..796f521b 100644 --- a/vendor/github.com/hectane/go-acl/api/acl.go +++ b/vendor/github.com/hectane/go-acl/api/acl.go @@ -85,14 +85,14 @@ type ExplicitAccess struct { // https://msdn.microsoft.com/en-us/library/windows/desktop/aa379576.aspx func SetEntriesInAcl(entries []ExplicitAccess, oldAcl windows.Handle, newAcl *windows.Handle) error { - ret, _, err := procSetEntriesInAclW.Call( + ret, _, _ := procSetEntriesInAclW.Call( uintptr(len(entries)), uintptr(unsafe.Pointer(&entries[0])), uintptr(oldAcl), uintptr(unsafe.Pointer(newAcl)), ) if ret != 0 { - return err + return windows.Errno(ret) } return nil } diff --git a/vendor/github.com/hectane/go-acl/api/secinfo.go b/vendor/github.com/hectane/go-acl/api/secinfo.go index 6b3c4410..32dc0d49 100644 --- a/vendor/github.com/hectane/go-acl/api/secinfo.go +++ b/vendor/github.com/hectane/go-acl/api/secinfo.go @@ -50,7 +50,7 @@ var ( // https://msdn.microsoft.com/en-us/library/windows/desktop/aa446645.aspx func GetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, owner, group **windows.SID, dacl, sacl, secDesc *windows.Handle) error { - ret, _, err := procGetNamedSecurityInfoW.Call( + ret, _, _ := procGetNamedSecurityInfoW.Call( uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(objectName))), uintptr(objectType), uintptr(secInfo), @@ -61,14 +61,14 @@ func GetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, o uintptr(unsafe.Pointer(secDesc)), ) if ret != 0 { - return err + return windows.Errno(ret) } return nil } // https://msdn.microsoft.com/en-us/library/windows/desktop/aa379579.aspx func SetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, owner, group *windows.SID, dacl, sacl windows.Handle) error { - ret, _, err := procSetNamedSecurityInfoW.Call( + ret, _, _ := procSetNamedSecurityInfoW.Call( uintptr(unsafe.Pointer(windows.StringToUTF16Ptr(objectName))), uintptr(objectType), uintptr(secInfo), @@ -78,7 +78,7 @@ func SetNamedSecurityInfo(objectName string, objectType int32, secInfo uint32, o uintptr(sacl), ) if ret != 0 { - return err + return windows.Errno(ret) } return nil } diff --git a/vendor/modules.txt b/vendor/modules.txt index 4b9b1314..538a95ab 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -251,7 +251,7 @@ github.com/hashicorp/hcl/hcl/token github.com/hashicorp/hcl/json/parser github.com/hashicorp/hcl/json/scanner github.com/hashicorp/hcl/json/token -# github.com/hectane/go-acl v0.0.0-20190604041725-da78bae5fc95 +# github.com/hectane/go-acl v0.0.0-20230122075934-ca0b05cb1adb ## explicit; go 1.12 github.com/hectane/go-acl github.com/hectane/go-acl/api