diff --git a/cmd/uptop/main.go b/cmd/uptop/main.go index da8df6a..65ad2f4 100644 --- a/cmd/uptop/main.go +++ b/cmd/uptop/main.go @@ -10,6 +10,7 @@ import ( "net/url" "os" "os/signal" + "path/filepath" "strconv" "strings" "sync" @@ -576,7 +577,7 @@ func seedKeysFromEnv(s store.Store) { } if path := os.Getenv("UPTOP_KEYS"); path != "" { - f, err := os.Open(path) + f, err := os.Open(filepath.Clean(path)) if err == nil { scanner := bufio.NewScanner(f) for scanner.Scan() {