From b0474022948c46fe4f5cebb4074efcd7ec70927d Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 1 Jun 2017 16:38:19 +0100 Subject: [PATCH] config: Fix save of temp file under Windows - fixes #1458 --- fs/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/config.go b/fs/config.go index a06081057..4bc804b1c 100644 --- a/fs/config.go +++ b/fs/config.go @@ -16,7 +16,6 @@ import ( "log" "os" "os/user" - "path" "path/filepath" "regexp" "sort" @@ -590,7 +589,7 @@ func changeConfigPassword() { // SaveConfig saves configuration file. // if configKey has been set, the file will be encrypted. func SaveConfig() { - dir, name := path.Split(ConfigPath) + dir, name := filepath.Split(ConfigPath) f, err := ioutil.TempFile(dir, name) if err != nil { log.Fatalf("Failed to create temp file for new config: %v", err)