From b418c61a507c2fa0b9a2d80bc99d55816e9cd3ef Mon Sep 17 00:00:00 2001 From: Alex Gartner Date: Tue, 2 Jul 2024 16:40:07 -0700 Subject: [PATCH] fix(zetaclient): tolerate absolute path in GetPath() --- zetaclient/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zetaclient/config/config.go b/zetaclient/config/config.go index 4cb0e6b21b..8c1a18157e 100644 --- a/zetaclient/config/config.go +++ b/zetaclient/config/config.go @@ -88,9 +88,10 @@ func GetPath(inputPath string) string { return "" } path[0] = home + return filepath.Join(path...) } } - return filepath.Join(path...) + return inputPath } // ContainRestrictedAddress returns true if any one of the addresses is restricted