Explorar o código

Merge pull request #295 from thaJeztah/18.09_backport_chroot_unsupported

[18.09 backport] Add realChroot for non linux/windows
Andrew Hsu %!s(int64=6) %!d(string=hai) anos
pai
achega
09431f90c8
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      pkg/chrootarchive/chroot_unix.go

+ 4 - 0
pkg/chrootarchive/chroot_unix.go

@@ -10,3 +10,7 @@ func chroot(path string) error {
 	}
 	return unix.Chdir("/")
 }
+
+func realChroot(path string) error {
+	return chroot(path)
+}