summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/context_mount.c
diff options
context:
space:
mode:
authorKarel Zak2011-01-10 14:29:51 +0100
committerKarel Zak2011-01-10 14:29:51 +0100
commitc59cf20c1be6d78f4e9ef404f5c5f2d44d57df94 (patch)
tree35bd484b43e2139e62507e732ecc2f3dc0a36103 /shlibs/mount/src/context_mount.c
parentmount: canonicalize paths in HAVE_LIBMOUNT_MOUNT code (diff)
downloadkernel-qcow2-util-linux-c59cf20c1be6d78f4e9ef404f5c5f2d44d57df94.tar.gz
kernel-qcow2-util-linux-c59cf20c1be6d78f4e9ef404f5c5f2d44d57df94.tar.xz
kernel-qcow2-util-linux-c59cf20c1be6d78f4e9ef404f5c5f2d44d57df94.zip
libmount: properly canonicalize source and target
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context_mount.c')
-rw-r--r--shlibs/mount/src/context_mount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shlibs/mount/src/context_mount.c b/shlibs/mount/src/context_mount.c
index 574a8142f..5f6ba6966 100644
--- a/shlibs/mount/src/context_mount.c
+++ b/shlibs/mount/src/context_mount.c
@@ -454,6 +454,8 @@ int mnt_context_do_mount(mnt_context *cxt)
if (!rc)
rc = mnt_context_prepare_srcpath(cxt);
if (!rc)
+ rc = mnt_context_prepare_target(cxt);
+ if (!rc)
rc = mnt_context_guess_fstype(cxt);
if (!rc)
rc = mnt_context_prepare_helper(cxt, "mount", NULL);