mirror of
https://github.com/mudler/luet.git
synced 2025-09-03 00:06:36 +00:00
Switch to go mod
This commit is contained in:
18
vendor/github.com/vbatts/go-mtree/stat_unix.go
generated
vendored
Normal file
18
vendor/github.com/vbatts/go-mtree/stat_unix.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// +build !windows
|
||||
|
||||
package mtree
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
func statIsUID(stat os.FileInfo, uid int) bool {
|
||||
statT := stat.Sys().(*syscall.Stat_t)
|
||||
return statT.Uid == uint32(uid)
|
||||
}
|
||||
|
||||
func statIsGID(stat os.FileInfo, gid int) bool {
|
||||
statT := stat.Sys().(*syscall.Stat_t)
|
||||
return statT.Gid == uint32(gid)
|
||||
}
|
Reference in New Issue
Block a user