From: Gui Chen Date: Thu, 16 May 2013 01:58:41 +0000 (-0400) Subject: fix symlink bind mount dirname X-Git-Tag: 0.19~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a12e274eae7de036e057218c24db189289e5f3f1;p=tools%2Fmic.git fix symlink bind mount dirname Signed-off-by: Gui Chen --- diff --git a/mic/utils/fs_related.py b/mic/utils/fs_related.py index 817a016..ae8799d 100644 --- a/mic/utils/fs_related.py +++ b/mic/utils/fs_related.py @@ -114,7 +114,8 @@ class BindChrootMount: if os.path.islink(src): self.src = os.readlink(src) if not self.src.startswith('/'): - self.src = os.path.abspath(os.path.join(src, self.src)) + self.src = os.path.abspath(os.path.join(os.path.dirname(src), + self.src)) if not dest: dest = self.src