From 2783eadc8f69ae5803a75dbfccd7ea1862cdfe51 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 18 Oct 2017 20:23:50 +0200 Subject: [PATCH] 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 --- daemonize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {