mirror of
https://github.com/containers/podman.git
synced 2026-07-20 20:22:02 -04:00
Also includes a small change to make us of https://github.com/containers/buildah/pull/5039 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
18 lines
268 B
Go
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)
|
|
}
|