From 18290148b4f668ee377737b58f3ce9b723c80f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Fr=C4=85czek?= Date: Fri, 17 May 2024 16:00:00 +0200 Subject: [PATCH] Fix config load when HOME="/" --- config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index 973d8459..712eea7d 100644 --- a/config/config.go +++ b/config/config.go @@ -410,7 +410,7 @@ func (c *Config) UnParsedOptions() map[string]string { func (c *Config) dotdDir() string { if !forceDotParse { home, err := iu.HomeDir() - if err == nil { + if err == nil && home != "/" { if strings.HasPrefix(c.ConfigFile, home) { return "" }