acl: rename UpdatePerms to Update
All checks were successful
Test / Create distribution (push) Successful in 24s
Test / Run NixOS test (push) Successful in 3m21s

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-02-17 20:33:18 +09:00
parent 38a3e6af03
commit 7e69893264
6 changed files with 215 additions and 215 deletions

18
acl/perms.go Normal file
View File

@@ -0,0 +1,18 @@
package acl
type Perms []Perm
func (ps Perms) String() string {
var s = []byte("---")
for _, p := range ps {
switch p {
case Read:
s[0] = 'r'
case Write:
s[1] = 'w'
case Execute:
s[2] = 'x'
}
}
return string(s)
}