summaryrefslogtreecommitdiffstats
path: root/src/dissect/dissect.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-11-09 11:52:50 +0100
committerLennart Poettering <lennart@poettering.net>2022-11-09 11:52:50 +0100
commit2e1f76f6ea714c7db9f6acecda733493281ca47c (patch)
tree0cce3ce082235fec1adc74959cf727f3180206ad /src/dissect/dissect.c
parentdissect: simplify flags for recurse_dir() (diff)
downloadsystemd-2e1f76f6ea714c7db9f6acecda733493281ca47c.tar.xz
systemd-2e1f76f6ea714c7db9f6acecda733493281ca47c.zip
dissect: open pager in --list mode, output might be long
Diffstat (limited to '')
-rw-r--r--src/dissect/dissect.c2
1 files changed, 2 insertions, 0 deletions
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");