From aaf62a9e142a3bccf98404f422a3f60fc8291d89 Mon Sep 17 00:00:00 2001 From: Lucas Manuel Rodriguez Date: Fri, 4 Mar 2022 13:30:20 -0300 Subject: [PATCH] Use filepath for proper multi-platform support (#4449) --- orbit/cmd/orbit/orbit.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/orbit/cmd/orbit/orbit.go b/orbit/cmd/orbit/orbit.go index 7ea53e5dda..276b6dc03c 100644 --- a/orbit/cmd/orbit/orbit.go +++ b/orbit/cmd/orbit/orbit.go @@ -9,7 +9,6 @@ import ( "io/ioutil" "net/url" "os" - "path" "path/filepath" "runtime" "strings" @@ -254,7 +253,7 @@ func main() { var options []osquery.Option options = append(options, osquery.WithDataPath(c.String("root-dir"))) - options = append(options, osquery.WithLogPath(path.Join(c.String("root-dir"), "osquery_log"))) + options = append(options, osquery.WithLogPath(filepath.Join(c.String("root-dir"), "osquery_log"))) if logFile != nil { // If set, redirect osqueryd's stderr to the logFile.