mirror of https://github.com/containers/podman.git
Revert "rootful: unset XDG_RUNTIME_DIR"
This reverts commit 91e21bed48
.
XDG_RUNTIME_DIR is required for the authfile path. We cannot unset it.
[NO TESTS NEEDED]
Fixes #11725
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
parent
800d594afa
commit
1cf66f514f
|
@ -89,12 +89,7 @@ func newPodmanConfig() {
|
|||
// use for the containers.conf configuration file.
|
||||
func setXdgDirs() error {
|
||||
if !rootless.IsRootless() {
|
||||
// unset XDG_RUNTIME_DIR for root
|
||||
// Sometimes XDG_RUNTIME_DIR is set to /run/user/0 sometimes it is unset,
|
||||
// the inconsistency is causing issues for the dnsname plugin.
|
||||
// It is already set to an empty string for conmon so lets do the same
|
||||
// for podman. see #10806 and #10745
|
||||
return os.Unsetenv("XDG_RUNTIME_DIR")
|
||||
return nil
|
||||
}
|
||||
|
||||
// Setup XDG_RUNTIME_DIR
|
||||
|
|
Loading…
Reference in New Issue