From a12e274eae7de036e057218c24db189289e5f3f1 Mon Sep 17 00:00:00 2001 From: Gui Chen Date: Wed, 15 May 2013 21:58:41 -0400 Subject: [PATCH] fix symlink bind mount dirname Signed-off-by: Gui Chen --- mic/utils/fs_related.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.7.4