fix: sosreport contains pwd and abs paths (#660)

This commit is contained in:
James Read 2025-10-24 20:52:01 +01:00 committed by GitHub
parent 3dfbbcc770
commit 439e952a25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ func initConfig(configDir string) {
var firstConfigPath string
for _, directory := range directories {
configPath := filepath.Join(directory, "config.yaml")
configPath, _ := filepath.Abs(filepath.Join(directory, "config.yaml"))
log.Debugf("Checking config path: %s", configPath)
if _, err := os.Stat(configPath); err != nil {