Skip to content

Commit

Permalink
#222: normalize basedir using os.path.realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
muayyad-alsadi committed Dec 10, 2021
1 parent 02f78dc commit a3123ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podman_compose.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def parse_short_mount(mount_str, basedir):
# User-relative path
# - ~/configs:/etc/configs/:ro
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))
else:
# Named volume
Expand Down

0 comments on commit a3123ce

Please sign in to comment.