mirror of
https://github.com/containers/buildah.git
synced 2025-04-19 18:02:18 +03:00
This change is generated by `go1.23rc2 fix ./...`. Had to use go1.23rc2, since all released go versions have a bug preventing it from working with `go 1.22.0` in go.mod (opened https://github.com/golang/go/issues/68825, https://github.com/golang/go/issues/68824 for awareness). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
17 lines
247 B
Go
17 lines
247 B
Go
//go:build linux || darwin || freebsd || netbsd
|
|
|
|
package util
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func UID(st os.FileInfo) int {
|
|
return int(st.Sys().(*syscall.Stat_t).Uid)
|
|
}
|
|
|
|
func GID(st os.FileInfo) int {
|
|
return int(st.Sys().(*syscall.Stat_t).Gid)
|
|
}
|