summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-12-22 23:58:08 +0100
committerGitHub <noreply@github.com>2021-12-22 23:58:08 +0100
commit74a58faf2a54a9a063efc69371af7d81d335ba21 (patch)
tree57ade448b681b1ef3427ea19171c70bcc18f268b
parent2aea0a5e9beb251dc1e8a0ab67fa1460c54194b9 (diff)
parentaf1dbbfb75851ce58dc59104fed2854bf0d9d171 (diff)
downloadpodman-74a58faf2a54a9a063efc69371af7d81d335ba21.tar.gz
podman-74a58faf2a54a9a063efc69371af7d81d335ba21.tar.bz2
podman-74a58faf2a54a9a063efc69371af7d81d335ba21.zip
Merge pull request #12685 from mheon/handle_nil_passwd
Always run passwd management code when DB value is nil
-rw-r--r--libpod/container_internal_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go
index edebe2393..0226f30c7 100644
--- a/libpod/container_internal_linux.go
+++ b/libpod/container_internal_linux.go
@@ -1763,7 +1763,7 @@ func (c *Container) makeBindMounts() error {
// SHM is always added when we mount the container
c.state.BindMounts["/dev/shm"] = c.config.ShmDir
- if c.config.Passwd != nil && *c.config.Passwd {
+ if c.config.Passwd == nil || *c.config.Passwd {
newPasswd, newGroup, err := c.generatePasswdAndGroup()
if err != nil {
return errors.Wrapf(err, "error creating temporary passwd file for container %s", c.ID())