mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-27 02:13:19 +01:00
#222: normalize basedir using os.path.realpath
This commit is contained in:
parent
02f78dc3d7
commit
a3123ce480
@ -112,7 +112,7 @@ def parse_short_mount(mount_str, basedir):
|
|||||||
# User-relative path
|
# User-relative path
|
||||||
# - ~/configs:/etc/configs/:ro
|
# - ~/configs:/etc/configs/:ro
|
||||||
mount_type = "bind"
|
mount_type = "bind"
|
||||||
# TODO: should we use os.path.realpath(basedir)?
|
basedir = os.path.realpath(basedir)
|
||||||
mount_src = os.path.join(basedir, os.path.expanduser(mount_src))
|
mount_src = os.path.join(basedir, os.path.expanduser(mount_src))
|
||||||
else:
|
else:
|
||||||
# Named volume
|
# Named volume
|
||||||
|
Loading…
Reference in New Issue
Block a user