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
This commit is contained in:
Jakob Unterwurzacher 2017-10-18 20:23:50 +02:00
parent 3009ec9852
commit 2783eadc8f
1 changed files with 1 additions and 1 deletions

View File

@ -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 {