Commit 12ffef5d authored by Guillem Jover's avatar Guillem Jover

dpkg: Switch showdiff() to command_get_pager()

parent 47d2aef6
......@@ -567,15 +567,11 @@ showdiff(const char *old, const char *new)
pid = subproc_fork();
if (!pid) {
/* Child process. */
const char *pager;
char cmdbuf[1024];
pager = getenv("PAGER");
if (str_is_unset(pager))
sprintf(cmdbuf, DIFF " -Nu %.250s %.250s | %.250s",
str_quote_meta(old), str_quote_meta(new), pager);
str_quote_meta(old), str_quote_meta(new),
command_shell(cmdbuf, _("conffile difference visualizer"));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment