aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-03 08:46:17 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-03 08:46:17 +0000
commitce80f29eb86a1f958baafc25458619fe6b17112f (patch)
tree5858586cb92996632f7a9d7107e99690aa7b6359 /main.c
parent56db51154e503662dc8c9cfed83c0bc0172a3f82 (diff)
downloadmandoc-ce80f29eb86a1f958baafc25458619fe6b17112f.tar.gz
mandoc-ce80f29eb86a1f958baafc25458619fe6b17112f.tar.zst
mandoc-ce80f29eb86a1f958baafc25458619fe6b17112f.zip
No need to hardcode /usr/bin/ as the path to more(1); helps portability.
We don't hardcode the paths to gunzip(1) and cmp(1) either. Discussed with ajacoutot@.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 6f15e38f..61e90fe5 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.231 2015/04/02 21:36:49 schwarze Exp $ */
+/* $Id: main.c,v 1.232 2015/04/03 08:46:17 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2012, 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -997,7 +997,7 @@ spawn_pager(void)
if (pager == NULL || *pager == '\0')
pager = getenv("PAGER");
if (pager == NULL || *pager == '\0')
- pager = "/usr/bin/more -s";
+ pager = "more -s";
cp = mandoc_strdup(pager);
/*