mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Use filepath for proper multi-platform support (#4449)
This commit is contained in:
parent
91474d89a3
commit
aaf62a9e14
1 changed files with 1 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue