From 1a2cb9b975123c1d121e440b06b409b9f36fc4a8 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 12 Feb 2021 11:14:36 +0100 Subject: [PATCH] config: clean and expand backup file path Because the CleanAndExpandPath function wasn't applied to the backup file path, any path that contained a tilde for the home directory didn't work. --- config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config.go b/config.go index c70ab04f..d3ab9b48 100644 --- a/config.go +++ b/config.go @@ -633,6 +633,7 @@ func ValidateConfig(cfg Config, usageMessage string) (*Config, error) { cfg.Tor.PrivateKeyPath = CleanAndExpandPath(cfg.Tor.PrivateKeyPath) cfg.Tor.WatchtowerKeyPath = CleanAndExpandPath(cfg.Tor.WatchtowerKeyPath) cfg.Watchtower.TowerDir = CleanAndExpandPath(cfg.Watchtower.TowerDir) + cfg.BackupFilePath = CleanAndExpandPath(cfg.BackupFilePath) // Create the lnd directory and all other sub directories if they don't // already exist. This makes sure that directory trees are also created