mirror of
https://github.com/sheumann/hush.git
synced 2024-11-04 14:05:24 +00:00
man: fix parsing of "DEFINE pager xyz". Closes 8976
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d035528261
commit
6b76e23454
@ -228,8 +228,8 @@ int man_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
if (!token[1])
|
if (!token[1])
|
||||||
continue;
|
continue;
|
||||||
if (strcmp("DEFINE", token[0]) == 0) {
|
if (strcmp("DEFINE", token[0]) == 0) {
|
||||||
if (is_prefixed_with("pager", token[1])) {
|
if (is_prefixed_with(token[1], "pager")) {
|
||||||
pager = xstrdup(skip_whitespace(token[1]) + 5);
|
pager = xstrdup(skip_whitespace(token[1] + 5));
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
if (strcmp("MANDATORY_MANPATH"+10, token[0]) == 0 /* "MANPATH"? */
|
if (strcmp("MANDATORY_MANPATH"+10, token[0]) == 0 /* "MANPATH"? */
|
||||||
|
Loading…
Reference in New Issue
Block a user