projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dc: fix "dc does_not_exist" SEGVing
[oweals/busybox.git]
/
miscutils
/
man.c
diff --git
a/miscutils/man.c
b/miscutils/man.c
index 932f0b79447d51b2a2e88fc95fc8e86b1475c878..ba6bb4c01f6df7a2570a37fbab53594cd3e63921 100644
(file)
--- a/
miscutils/man.c
+++ b/
miscutils/man.c
@@
-2,6
+2,15
@@
* Copyright (C) 2008 Denys Vlasenko <vda.linux@googlemail.com>
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
* Copyright (C) 2008 Denys Vlasenko <vda.linux@googlemail.com>
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
+//config:config MAN
+//config: bool "man (27 kb)"
+//config: default y
+//config: help
+//config: Format and display manual pages.
+
+//applet:IF_MAN(APPLET(man, BB_DIR_USR_BIN, BB_SUID_DROP))
+
+//kbuild:lib-$(CONFIG_MAN) += man.o
//usage:#define man_trivial_usage
//usage: "[-aw] [MANPAGE]..."
//usage:#define man_trivial_usage
//usage: "[-aw] [MANPAGE]..."
@@
-244,8
+253,7
@@
int man_main(int argc UNUSED_PARAM, char **argv)
INIT_G();
INIT_G();
- opt_complementary = "-1"; /* at least one argument */
- opt = getopt32(argv, "+aw");
+ opt = getopt32(argv, "^+" "aw" "\0" "-1"/*at least one arg*/);
argv += optind;
sec_list = xstrdup("0p:1:1p:2:3:3p:4:5:6:7:8:9");
argv += optind;
sec_list = xstrdup("0p:1:1p:2:3:3p:4:5:6:7:8:9");