Skip to content

Commit

Permalink
Revert "rootful: unset XDG_RUNTIME_DIR"
Browse files Browse the repository at this point in the history
This reverts commit 91e21be.

XDG_RUNTIME_DIR is required for the authfile path. We cannot unset it.

[NO TESTS NEEDED]

Fixes containers#11725

Signed-off-by: Paul Holzinger <[email protected]>
  • Loading branch information
Luap99 committed Sep 24, 2021
1 parent 800d594 commit 1cf66f5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmd/podman/registry/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cf66f5

Please sign in to comment.