Add realChroot for non linux/windows
3029e765e2
broke compilation on non-Linux/Windows systems. This change fixes that. Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit34d5b8867f
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
6e9aba883c
commit
47a7f762d3
1 changed files with 4 additions and 0 deletions
|
@ -10,3 +10,7 @@ func chroot(path string) error {
|
|||
}
|
||||
return unix.Chdir("/")
|
||||
}
|
||||
|
||||
func realChroot(path string) error {
|
||||
return chroot(path)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue