From 2e1f76f6ea714c7db9f6acecda733493281ca47c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Nov 2022 11:52:50 +0100 Subject: dissect: open pager in --list mode, output might be long --- src/dissect/dissect.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dissect') diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index dafd474a30..f2851e25f8 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -896,6 +896,8 @@ static int action_list_or_copy(DissectedImage *m, LoopDevice *d) { if (dfd < 0) return log_error_errno(errno, "Failed to open mount directory: %m"); + pager_open(arg_pager_flags); + r = recurse_dir(dfd, NULL, 0, UINT_MAX, RECURSE_DIR_SORT, list_print_item, NULL); if (r < 0) return log_error_errno(r, "Failed to list image: %m"); -- cgit v1.2.3