summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmount/src/context_umount.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libmount/src/context_umount.c b/libmount/src/context_umount.c
index b9484594b..4a8659c9c 100644
--- a/libmount/src/context_umount.c
+++ b/libmount/src/context_umount.c
@@ -909,11 +909,8 @@ int mnt_context_next_umount(struct libmnt_context *cxt,
DBG(CXT, mnt_debug_h(cxt, "next-umount: trying %s", tgt));
- /* ignore root filesystem */
- if ((tgt && (strcmp(tgt, "/") == 0 || strcmp(tgt, "root") == 0)) ||
-
/* ignore filesystems not match with options patterns */
- (cxt->fstype_pattern && !mnt_fs_match_fstype(*fs,
+ if ((cxt->fstype_pattern && !mnt_fs_match_fstype(*fs,
cxt->fstype_pattern)) ||
/* ignore filesystems not match with type patterns */