libmount: Allow MNT_FORCE and MNT_DETACH at umount

MNT_FORCE and MNT_DETACH are orthogonal in the Linux kernel, so both may
be specified without any problems. Even if there were a problem with
this combination, it should be up to the kernel to take the correct
action or report an error.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
This commit is contained in:
Joshua Watt 2017-11-06 16:25:36 -06:00 committed by Karel Zak
parent 424cee0f06
commit 5d9c796660
1 changed files with 1 additions and 1 deletions

View File

@ -704,7 +704,7 @@ static int do_umount(struct libmnt_context *cxt)
if (mnt_context_is_lazy(cxt))
flags |= MNT_DETACH;
else if (mnt_context_is_force(cxt))
if (mnt_context_is_force(cxt))
flags |= MNT_FORCE;
DBG(CXT, ul_debugobj(cxt, "umount(2) [target='%s', flags=0x%08x]%s",