aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/shared
diff options
context:
space:
mode:
authorHunor Csomortáni <csomh@redhat.com>2019-10-10 21:51:25 +0200
committerHunor Csomortáni <csomh@redhat.com>2019-10-10 21:51:25 +0200
commitf4c7a66149a33865684a759311628a87230eea09 (patch)
treeb6c0b02c80477215d2e17d33eb10c617ad434edf /cmd/podman/shared
parentf39e097a815799bad704a8a1d8f16ee86f4c3602 (diff)
downloadpodman-f4c7a66149a33865684a759311628a87230eea09.tar.gz
podman-f4c7a66149a33865684a759311628a87230eea09.tar.bz2
podman-f4c7a66149a33865684a759311628a87230eea09.zip
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>
Diffstat (limited to 'cmd/podman/shared')
-rw-r--r--cmd/podman/shared/funcs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/shared/funcs.go b/cmd/podman/shared/funcs.go
index bb4eed1e3..9362e8e9b 100644
--- a/cmd/podman/shared/funcs.go
+++ b/cmd/podman/shared/funcs.go
@@ -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 ""
}