Forráskód Böngészése

Merge pull request #295 from thaJeztah/18.09_backport_chroot_unsupported

[18.09 backport] Add realChroot for non linux/windows
Andrew Hsu 6 éve
szülő
commit
09431f90c8
1 módosított fájl, 4 hozzáadás és 0 törlés
  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)
+}