diff options
author | Hunor Csomortáni <csomh@redhat.com> | 2019-10-10 21:51:25 +0200 |
---|---|---|
committer | Hunor Csomortáni <csomh@redhat.com> | 2019-10-10 21:51:25 +0200 |
commit | f4c7a66149a33865684a759311628a87230eea09 (patch) | |
tree | b6c0b02c80477215d2e17d33eb10c617ad434edf /cmd/podman/shared/funcs.go | |
parent | f39e097a815799bad704a8a1d8f16ee86f4c3602 (diff) | |
download | podman-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/funcs.go')
-rw-r--r-- | cmd/podman/shared/funcs.go | 2 |
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 "" } |