aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-10-18 20:23:50 +0200
committerJakob Unterwurzacher2017-10-18 20:25:34 +0200
commit2783eadc8f69ae5803a75dbfccd7ea1862cdfe51 (patch)
treec572d0448f097cce8d6ae28cc8076d74e239624b
parent3009ec9852316c3c696f77f476390ab5a6d8d6d7 (diff)
main: call logger with full path
If $PATH contains the mountpoint, searching through it will lock us up. Use an absolute path to avoid looking at $PATH. Fixes https://github.com/rfjakob/gocryptfs/issues/146
-rw-r--r--daemonize.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemonize.go b/daemonize.go
index 1f7b699..67bb1d9 100644
--- a/daemonize.go
+++ b/daemonize.go
@@ -65,7 +65,7 @@ func redirectStdFds() {
return
}
tag := fmt.Sprintf("gocryptfs-%d-logger", os.Getpid())
- cmd := exec.Command("logger", "-t", tag)
+ cmd := exec.Command("/usr/bin/logger", "-t", tag)
cmd.Stdin = pr
err = cmd.Start()
if err != nil {