diff options
author | Karel Zak | 2010-11-22 23:15:54 +0100 |
---|---|---|
committer | Karel Zak | 2011-01-03 12:28:46 +0100 |
commit | 46cfd4a2656bc0e38f91c9d0cab3f8826d5e4792 (patch) | |
tree | ab1837a86c3f8936ad3e3ac406ff5de29713ff78 /shlibs/mount/src/context_mount.c | |
parent | tests: add basic libmount tests for mounting (diff) | |
download | kernel-qcow2-util-linux-46cfd4a2656bc0e38f91c9d0cab3f8826d5e4792.tar.gz kernel-qcow2-util-linux-46cfd4a2656bc0e38f91c9d0cab3f8826d5e4792.tar.xz kernel-qcow2-util-linux-46cfd4a2656bc0e38f91c9d0cab3f8826d5e4792.zip |
libmount: fix context mount test
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/mount/src/context_mount.c b/shlibs/mount/src/context_mount.c index 070d72f10..7b0a9c126 100644 --- a/shlibs/mount/src/context_mount.c +++ b/shlibs/mount/src/context_mount.c @@ -377,6 +377,7 @@ static int do_mount_by_pattern(mnt_context *cxt, const char *pattern) char **filesystems, **fp; assert(cxt); + assert((cxt->flags & MNT_FL_MOUNTFLAGS_MERGED)); if (!neg && pattern) { /* @@ -436,7 +437,6 @@ int mnt_context_do_mount(mnt_context *cxt) assert(cxt); assert(cxt->fs); - assert((cxt->flags & MNT_FL_MOUNTFLAGS_MERGED)); assert(cxt->helper_exec_status == 1); assert(cxt->syscall_status == 1); |