diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-08-22 21:41:05 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-08-22 21:41:05 +0200 |
commit | 6b76e2345490a1f65423b72580f84d09b3983ab6 (patch) | |
tree | f7b8905951d80ec7887d3a197656d1d84db17b13 | |
parent | d035528261eb9304e9e448c7d8847095b8e8c7c5 (diff) | |
download | busybox-w32-6b76e2345490a1f65423b72580f84d09b3983ab6.tar.gz busybox-w32-6b76e2345490a1f65423b72580f84d09b3983ab6.tar.bz2 busybox-w32-6b76e2345490a1f65423b72580f84d09b3983ab6.zip |
man: fix parsing of "DEFINE pager xyz". Closes 8976
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | miscutils/man.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/miscutils/man.c b/miscutils/man.c index 58ed81955..f705dd31e 100644 --- a/miscutils/man.c +++ b/miscutils/man.c | |||
@@ -228,8 +228,8 @@ int man_main(int argc UNUSED_PARAM, char **argv) | |||
228 | if (!token[1]) | 228 | if (!token[1]) |
229 | continue; | 229 | continue; |
230 | if (strcmp("DEFINE", token[0]) == 0) { | 230 | if (strcmp("DEFINE", token[0]) == 0) { |
231 | if (is_prefixed_with("pager", token[1])) { | 231 | if (is_prefixed_with(token[1], "pager")) { |
232 | pager = xstrdup(skip_whitespace(token[1]) + 5); | 232 | pager = xstrdup(skip_whitespace(token[1] + 5)); |
233 | } | 233 | } |
234 | } else | 234 | } else |
235 | if (strcmp("MANDATORY_MANPATH"+10, token[0]) == 0 /* "MANPATH"? */ | 235 | if (strcmp("MANDATORY_MANPATH"+10, token[0]) == 0 /* "MANPATH"? */ |