mirror of
https://github.com/containers/skopeo.git
synced 2025-09-25 20:29:24 +00:00
Vendor after merging containers/image#436
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
15
vendor/github.com/containers/storage/drivers/chroot_windows.go
generated
vendored
Normal file
15
vendor/github.com/containers/storage/drivers/chroot_windows.go
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
package graphdriver
|
||||
|
||||
import (
|
||||
"os"
|
||||
"syscall"
|
||||
)
|
||||
|
||||
// chrootOrChdir() is either a chdir() to the specified path, or a chroot() to the
|
||||
// specified path followed by chdir() to the new root directory
|
||||
func chrootOrChdir(path string) error {
|
||||
if err := syscall.Chdir(path); err != nil {
|
||||
return fmt.Errorf("error changing to %q: %v", path, err)
|
||||
}
|
||||
return nil
|
||||
}
|
Reference in New Issue
Block a user