From 4255ebeb232b2312f5d13cccb6b706176d777c8a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 26 Aug 2022 10:18:14 +0200 Subject: [PATCH] libmount: use optlist to get infor about MS_REC Signed-off-by: Karel Zak --- libmount/src/hook_idmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmount/src/hook_idmap.c b/libmount/src/hook_idmap.c index 254fd13c01..29f34700cc 100644 --- a/libmount/src/hook_idmap.c +++ b/libmount/src/hook_idmap.c @@ -284,12 +284,11 @@ static int hook_mount_post( .attr_set = MOUNT_ATTR_IDMAP, .userns_fd = hd->userns_fd }; - const int recursive = cxt->mountflags & MS_REC; + const int recursive = mnt_optlist_is_recursive(cxt->optlist); const char *target = mnt_fs_get_target(cxt->fs); int fd_tree = -1; int rc; - assert(cxt); assert(hd); assert(target); assert(hd->userns_fd >= 0); -- 2.47.3