Skip to content

Commit

Permalink
Merge pull request #12685 from mheon/handle_nil_passwd
Browse files Browse the repository at this point in the history
Always run passwd management code when DB value is nil
  • Loading branch information
openshift-merge-robot authored Dec 22, 2021
2 parents 2aea0a5 + af1dbbf commit 74a58fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpod/container_internal_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 74a58fa

Please sign in to comment.