diff options
author | Guillem Jover <guillem@debian.org> | 2018-10-05 02:01:28 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2018-10-08 11:55:52 +0200 |
commit | ce9b2e88602dcdff93963b9cb8aef302179b81c9 (patch) | |
tree | ea03b505132905c64888366ebb71b7cace7b4018 /src/querycmd.c | |
parent | 91c8d3ff2bdfaf7b55566bd99dea08703c47a682 (diff) | |
download | dpkg-ce9b2e88602dcdff93963b9cb8aef302179b81c9.tar.gz |
libdpkg: Pass the file contents to the pager instead of the filename
Let's just handle opening the file and passing its data to the pager
ourselves, as that gives us more control, and then can decide not to
run a pager at all, and do not need to mess with arguments which might
need to be passed to «sh -c».
Diffstat (limited to 'src/querycmd.c')
-rw-r--r-- | src/querycmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/querycmd.c b/src/querycmd.c index 415235bff..a62b27655 100644 --- a/src/querycmd.c +++ b/src/querycmd.c @@ -265,7 +265,7 @@ listpackages(const char *const *argv) memset(&fmt, 0, sizeof(fmt)); - pager = pager_spawn(_("showing package list on pager"), NULL); + pager = pager_spawn(_("showing package list on pager")); if (!*argv) { for (i = 0; i < array.n_pkgs; i++) { |