summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/context.c
diff options
context:
space:
mode:
authorKarel Zak2011-01-25 01:11:37 +0100
committerKarel Zak2011-01-25 01:11:37 +0100
commit5a669b12f84f85f7ace13712b20ce9592a08f157 (patch)
treee0d1db464c5b7c72f9b0c637b883c2fcadecf442 /shlibs/mount/src/context.c
parentlibmount: improve status check, minor cleanups (diff)
downloadkernel-qcow2-util-linux-5a669b12f84f85f7ace13712b20ce9592a08f157.tar.gz
kernel-qcow2-util-linux-5a669b12f84f85f7ace13712b20ce9592a08f157.tar.xz
kernel-qcow2-util-linux-5a669b12f84f85f7ace13712b20ce9592a08f157.zip
libmount: fix user= usage
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/context.c')
-rw-r--r--shlibs/mount/src/context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shlibs/mount/src/context.c b/shlibs/mount/src/context.c
index ed9f223ae..676552bf1 100644
--- a/shlibs/mount/src/context.c
+++ b/shlibs/mount/src/context.c
@@ -1440,8 +1440,10 @@ int mnt_context_apply_fstab(struct libmnt_context *cxt)
}
/* fstab is not required if source and target are specified */
- if (src && tgt && !(cxt->optsmode == MNT_OMODE_FORCE))
+ if (src && tgt && !(cxt->optsmode & MNT_OMODE_FORCE)) {
+ DBG(CXT, mnt_debug_h(cxt, "fstab not required -- skip"));
return 0;
+ }
DBG(CXT, mnt_debug_h(cxt,
"trying to apply fstab (src=%s, target=%s)", src, tgt));