summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-11-29 02:21:55 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-11-29 02:21:55 (GMT)
commit0ab45da92990072a23fda0f35d068743b1067cf3 (patch)
treee9d913a76eb57afe4c06dc2add065e80e80b1768
parent8f0af3b0013156b8aa3bae802af5e33c3a440915 (diff)
downloadbusybox-0ab45da92990072a23fda0f35d068743b1067cf3.tar.gz
busybox-0ab45da92990072a23fda0f35d068743b1067cf3.tar.bz2
exclude the case of just "busybox" from previous commit
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--libbb/appletlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c
index c65180c..efd7a5a 100644
--- a/libbb/appletlib.c
+++ b/libbb/appletlib.c
@@ -812,7 +812,7 @@ int main(int argc UNUSED_PARAM, char **argv)
#if defined(SINGLE_APPLET_MAIN)
/* Only one applet is selected in .config */
- if (strncmp(argv[0], "busybox", 7) == 0) {
+ if (argv[1] && strncmp(argv[0], "busybox", 7) == 0) {
/* "busybox <applet> <params>" should still work as expected */
argv++;
}