mirror of
https://github.com/containers/skopeo.git
synced 2025-09-29 14:06:06 +00:00
Bump github.com/containers/storage from 1.41.0 to 1.42.0
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.41.0 to 1.42.0. - [Release notes](https://github.com/containers/storage/releases) - [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md) - [Commits](https://github.com/containers/storage/compare/v1.41.0...v1.42.0) --- updated-dependencies: - dependency-name: github.com/containers/storage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
5
vendor/github.com/containers/storage/drivers/chroot_unix.go
generated
vendored
5
vendor/github.com/containers/storage/drivers/chroot_unix.go
generated
vendored
@@ -1,3 +1,4 @@
|
||||
//go:build linux || darwin || freebsd || solaris
|
||||
// +build linux darwin freebsd solaris
|
||||
|
||||
package graphdriver
|
||||
@@ -12,10 +13,10 @@ import (
|
||||
// specified path followed by chdir() to the new root directory
|
||||
func chrootOrChdir(path string) error {
|
||||
if err := syscall.Chroot(path); err != nil {
|
||||
return fmt.Errorf("error chrooting to %q: %v", path, err)
|
||||
return fmt.Errorf("chrooting to %q: %w", path, err)
|
||||
}
|
||||
if err := syscall.Chdir(string(os.PathSeparator)); err != nil {
|
||||
return fmt.Errorf("error changing to %q: %v", path, err)
|
||||
return fmt.Errorf("changing to %q: %w", path, err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user