tags 405108 patch
thanks
Package: busybox
Version: 1:1.9.1-3
When --list is given as first argument to the multi-call binary, print each
built-in applet to standard output.
Signed-off-by: Kel Modderman <[EMAIL PROTECTED]>
---
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -619,6 +619,14 @@
/* convert to "<applet> --help" */
argv[0] = argv[2];
argv[2] = NULL;
+ } else if (strcmp(argv[1], "--list") == 0) {
+ const char *a;
+ a = applet_names;
+ while (*a) {
+ printf("%s\n", a);
+ a += strlen(a) + 1;
+ }
+ return 0;
} else {
/* "busybox <applet> arg1 arg2 ..." */
argv++;
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]