aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 7a220f7b0..33efb5d84 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -69,16 +69,16 @@ int main(int argc, char **argv)
69{ 69{
70 const char *s; 70 const char *s;
71 71
72 for (s = applet_name = argv[0]; *s != '\0';) { 72 applet_name = argv[0];
73
74 if (applet_name[0] == '-')
75 applet_name++;
76
77 for (s = applet_name; *s != '\0';) {
73 if (*s++ == '/') 78 if (*s++ == '/')
74 applet_name = s; 79 applet_name = s;
75 } 80 }
76 81
77 /* Add in a special case hack for a leading hyphen */
78 if (**argv == '-' && *(*argv+1)!= '-') {
79 applet_name = (*argv+1);
80 }
81
82#ifdef BB_LOCALE_SUPPORT 82#ifdef BB_LOCALE_SUPPORT
83#ifdef BB_INIT 83#ifdef BB_INIT
84 if(getpid()!=1) /* Do not set locale for `init' */ 84 if(getpid()!=1) /* Do not set locale for `init' */