aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/acl/acl.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-30 13:19:15 +0900
committerOphestra <cat@gensokyo.uk>2025-08-30 13:19:15 +0900
commit0122593312679f193e8c2574abf9ae879173d185 (patch)
tree4d698d133e17f3db5d6f1fd9cc32f9d83172a2a0 /system/acl/acl.go
parent6aa431d57a2c224c7974bf12d93b46475efecf6e (diff)
system/acl: wrap libacl errors in PathError
This helps determine which libacl function the errno came from. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/acl/acl.go')
-rw-r--r--system/acl/acl.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/system/acl/acl.go b/system/acl/acl.go
index bc590db2..366ad533 100644
--- a/system/acl/acl.go
+++ b/system/acl/acl.go
@@ -29,8 +29,5 @@ func Update(name string, uid int, perms ...Perm) error {
(*C.acl_perm_t)(p),
C.size_t(len(perms)),
)
- if r == 0 {
- return nil
- }
- return err
+ return newAclPathError(name, int(r), err)
}