Files
podman/vendor/github.com/containers/buildah/util/util_unix.go
Paul Holzinger 2c2299ad85 bump buildah to latest
Also includes a small change to make us of
https://github.com/containers/buildah/pull/5039

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-09-14 11:20:48 +02:00

18 lines
268 B
Go

//go:build linux || darwin || freebsd
// +build linux darwin freebsd
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)
}