mirror of
https://github.com/containers/podman.git
synced 2025-12-05 04:40:47 +08:00
vendor: update buildah to latest main
Includes one breaking change for the flag as BuildOutputs now accept a slice. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
7
vendor/github.com/containers/buildah/copier/syscall_unix.go
generated
vendored
7
vendor/github.com/containers/buildah/copier/syscall_unix.go
generated
vendored
@@ -70,6 +70,13 @@ func lutimes(_ bool, path string, atime, mtime time.Time) error {
|
||||
return unix.Lutimes(path, []unix.Timeval{unix.NsecToTimeval(atime.UnixNano()), unix.NsecToTimeval(mtime.UnixNano())})
|
||||
}
|
||||
|
||||
func owner(info os.FileInfo) (int, int, error) {
|
||||
if st, ok := info.Sys().(*syscall.Stat_t); ok {
|
||||
return int(st.Uid), int(st.Gid), nil
|
||||
}
|
||||
return -1, -1, syscall.ENOSYS
|
||||
}
|
||||
|
||||
// sameDevice returns true unless we're sure that they're not on the same device
|
||||
func sameDevice(a, b os.FileInfo) bool {
|
||||
aSys := a.Sys()
|
||||
|
||||
Reference in New Issue
Block a user