mirror of
https://github.com/containers/podman.git
synced 2025-12-12 09:50:25 +08:00
Bump github.com/containers/common from 0.4.2 to 0.5.0
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.4.2 to 0.5.0. - [Release notes](https://github.com/containers/common/releases) - [Commits](https://github.com/containers/common/compare/v0.4.2...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
committed by
Daniel J Walsh
parent
c9f148fb15
commit
a95e9e5b4a
8
vendor/github.com/containers/buildah/imagebuildah/stage_executor.go
generated
vendored
8
vendor/github.com/containers/buildah/imagebuildah/stage_executor.go
generated
vendored
@@ -238,7 +238,13 @@ func (s *StageExecutor) volumeCacheRestore() error {
|
||||
if err := os.Chmod(archivedPath, st.Mode()); err != nil {
|
||||
return errors.Wrapf(err, "error restoring permissions on %q", archivedPath)
|
||||
}
|
||||
if err := os.Chown(archivedPath, 0, 0); err != nil {
|
||||
uid := 0
|
||||
gid := 0
|
||||
if st.Sys() != nil {
|
||||
uid = util.UID(st)
|
||||
gid = util.GID(st)
|
||||
}
|
||||
if err := os.Chown(archivedPath, uid, gid); err != nil {
|
||||
return errors.Wrapf(err, "error setting ownership on %q", archivedPath)
|
||||
}
|
||||
if err := os.Chtimes(archivedPath, st.ModTime(), st.ModTime()); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user