diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-03-08 08:57:21 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-03-30 13:56:41 -0400 |
commit | 32802d6a6d65ec4d2416b23c53d1b34096252bbb (patch) | |
tree | 350c0ec9667e59ba1f1664b6b839ab94a77cca1b /cmd/podman/common | |
parent | 37a9746332c88474965d0f1f3fb15ce1d56d06bb (diff) | |
download | podman-32802d6a6d65ec4d2416b23c53d1b34096252bbb.tar.gz podman-32802d6a6d65ec4d2416b23c53d1b34096252bbb.tar.bz2 podman-32802d6a6d65ec4d2416b23c53d1b34096252bbb.zip |
Fix handling of tmpfs-mode for tmpfs creation in compat mode
The permissions on disk were wrong since we were not converting to
octal.
Fixes: https://github.com/containers/podman/issues/13108
[NO NEW TESTS NEEDED] Since we don't currently test using the docker
client
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r-- | cmd/podman/common/create_opts.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/common/create_opts.go b/cmd/podman/common/create_opts.go index a4f94616c..b110b3d85 100644 --- a/cmd/podman/common/create_opts.go +++ b/cmd/podman/common/create_opts.go @@ -117,7 +117,7 @@ func ContainerCreateToContainerCLIOpts(cc handlers.CreateContainerConfig, rtc *c case mount.TypeTmpfs: if m.TmpfsOptions != nil { addField(&builder, "tmpfs-size", strconv.FormatInt(m.TmpfsOptions.SizeBytes, 10)) - addField(&builder, "tmpfs-mode", strconv.FormatUint(uint64(m.TmpfsOptions.Mode), 10)) + addField(&builder, "tmpfs-mode", strconv.FormatUint(uint64(m.TmpfsOptions.Mode), 8)) } case mount.TypeVolume: // All current VolumeOpts are handled above |