Skip to content

Commit

Permalink
Fix config load when HOME="/"
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-fraczek committed May 20, 2024
1 parent acca014 commit 1829014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 ""
}
Expand Down

0 comments on commit 1829014

Please sign in to comment.