diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-11 05:23:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 05:23:34 -0500 |
commit | ca354f13f28896351e910da72f946e21bac2c6b0 (patch) | |
tree | 8c980caaff587953bf3c9e3c73918a62c8fe42d1 /libpod/container_internal_linux.go | |
parent | db64865164b72af7017e9d3c34e75ee3bfd8546e (diff) | |
parent | ea910fc53537d8c6f8cd1e1eaad49eaa5906c5f5 (diff) | |
download | podman-ca354f13f28896351e910da72f946e21bac2c6b0.tar.gz podman-ca354f13f28896351e910da72f946e21bac2c6b0.tar.bz2 podman-ca354f13f28896351e910da72f946e21bac2c6b0.zip |
Merge pull request #9308 from mheon/fix_6003
Rewrite copy-up to use buildah Copier
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r-- | libpod/container_internal_linux.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index 3583f8fdd..1c4537a27 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -2278,23 +2278,6 @@ func (c *Container) generatePasswdAndGroup() (string, string, error) { return passwdPath, groupPath, nil } -func (c *Container) copyOwnerAndPerms(source, dest string) error { - info, err := os.Stat(source) - if err != nil { - if os.IsNotExist(err) { - return nil - } - return err - } - if err := os.Chmod(dest, info.Mode()); err != nil { - return err - } - if err := os.Chown(dest, int(info.Sys().(*syscall.Stat_t).Uid), int(info.Sys().(*syscall.Stat_t).Gid)); err != nil { - return err - } - return nil -} - // Get cgroup path in a format suitable for the OCI spec func (c *Container) getOCICgroupPath() (string, error) { unified, err := cgroups.IsCgroup2UnifiedMode() |