diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-30 13:19:15 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-30 13:19:15 +0900 |
| commit | 0122593312679f193e8c2574abf9ae879173d185 (patch) | |
| tree | 4d698d133e17f3db5d6f1fd9cc32f9d83172a2a0 /system/acl/acl.go | |
| parent | 6aa431d57a2c224c7974bf12d93b46475efecf6e (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.go | 5 |
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) } |
