From: Denys Vlasenko Date: Mon, 29 Nov 2010 02:21:55 +0000 (+0100) Subject: exclude the case of just "busybox" from previous commit X-Git-Tag: 1_19_0~482 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0ab45da92990072a23fda0f35d068743b1067cf3;p=oweals%2Fbusybox.git exclude the case of just "busybox" from previous commit Signed-off-by: Denys Vlasenko --- diff --git a/libbb/appletlib.c b/libbb/appletlib.c index c65180c5e..efd7a5a81 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 " should still work as expected */ argv++; }