Add realChroot for non linux/windows

3029e765e241ea2b5249868705dbf9095bc4d529 broke compilation on
non-Linux/Windows systems.
This change fixes that.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
(cherry picked from commit 34d5b8867fe83403a6998d043a32a49e087f2477)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: d0808b92aec7ff1b0e790625e2e6518eb8c014a0
Component: engine
This commit is contained in:
Brian Goff
2019-07-03 14:36:48 -07:00
committed by Sebastiaan van Stijn
parent 33b4c4329e
commit 2cf3e1d4d8

View File

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