Fix default path for auth.json

Default path should be ${XDG_RUNTIME_DIR}/containers/auth.json according
to the docs.

This regressed to ${XDG_RUNTIME_DIR}/auth.json in #3760.

Fixes: #4227

Signed-off-by: Hunor Csomortáni <csomh@redhat.com>
This commit is contained in:
Hunor Csomortáni 2019-10-10 21:51:25 +02:00
parent f39e097a81
commit f4c7a66149

View file

@ -21,7 +21,7 @@ func GetAuthFile(authfile string) string {
}
if runtimeDir, err := util.GetRuntimeDir(); err == nil {
return filepath.Join(runtimeDir, "auth.json")
return filepath.Join(runtimeDir, "containers/auth.json")
}
return ""
}