Skip to content

Commit

Permalink
main: call logger with full path
Browse files Browse the repository at this point in the history
If $PATH contains the mountpoint, searching through it
will lock us up. Use an absolute path to avoid looking
at $PATH.

Fixes #146
  • Loading branch information
rfjakob committed Oct 18, 2017
1 parent 3009ec9 commit 2783ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemonize.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2783ead

Please sign in to comment.