From: Karel Zak Date: Fri, 26 Aug 2022 08:18:14 +0000 (+0200) Subject: libmount: use optlist to get infor about MS_REC X-Git-Tag: v2.39-rc1~277 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4255ebeb232b2312f5d13cccb6b706176d777c8a;p=thirdparty%2Futil-linux.git libmount: use optlist to get infor about MS_REC Signed-off-by: Karel Zak --- 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);