projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f0af3b
)
exclude the case of just "busybox" from previous commit
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 29 Nov 2010 02:21:55 +0000
(
03:21
+0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 29 Nov 2010 02:21:55 +0000
(
03:21
+0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libbb/appletlib.c
patch
|
blob
|
history
diff --git
a/libbb/appletlib.c
b/libbb/appletlib.c
index c65180c5eeb45f473ad6d05a4bf12be92bf14e81..efd7a5a818b37f77c151beb7f4cb3d649d205b8f 100644
(file)
--- 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++;
}