summaryrefslogtreecommitdiffstats
path: root/sys-utils/umount.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/umount.c')
-rw-r--r--sys-utils/umount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/umount.c b/sys-utils/umount.c
index b21e39674..06d33de1d 100644
--- a/sys-utils/umount.c
+++ b/sys-utils/umount.c
@@ -374,6 +374,8 @@ static int umount_recursive(struct libmnt_context *cxt, const char *spec)
err(MOUNT_EX_SYSERR, _("libmount table allocation failed"));
mnt_table_set_parser_errcb(tb, table_parser_errcb);
+ mnt_table_set_cache(tb, mnt_context_get_cache(cxt));
+
/*
* Don't use mtab here. The recursive umount depends on child-parent
* relationship defined by mountinfo file.