Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-02-24 21:59:59 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-02-24 21:59:59 +0300
commite2c966f4a3546f3da639f35fca4ea949973969e0 (patch)
tree9f4f423311c3c4b6d333fd3260c153078654ecbf
parentd074949316eba3da84bd1dd46f80eec2800763dc (diff)
Try to solve #4chroot-path
-rw-r--r--daemon.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.go b/daemon.go
index de6ce4a3..5cd08a6d 100644
--- a/daemon.go
+++ b/daemon.go
@@ -159,7 +159,7 @@ func daemonChroot(cmd *exec.Cmd) (path string, err error) {
// Update command to use chroot
cmd.SysProcAttr.Chroot = wd
- cmd.Path = temporaryExecutable.Name()
+ cmd.Path = "/" + temporaryExecutable.Name()
cmd.Dir = "/"
path = filepath.Join(wd, temporaryExecutable.Name())
return