summaryrefslogtreecommitdiff
path: root/applets/applets.c
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-10 23:32:37 +0000
committerDenis Vlasenko2007-04-10 23:32:37 +0000
commitf1a7141cfcacf606ae321faa58c45617045460fe (patch)
tree6b2f3cabea3c78a1f13a1beb30074881f643707d /applets/applets.c
parent80d14beae9ebe64d3be1e6c2771f292977cf6d2c (diff)
downloadbusybox-f1a7141cfcacf606ae321faa58c45617045460fe.zip
busybox-f1a7141cfcacf606ae321faa58c45617045460fe.tar.gz
random NOMMU fixes. compressed --help really does work for NOMMU! /me happy
Diffstat (limited to 'applets/applets.c')
-rw-r--r--applets/applets.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/applets.c b/applets/applets.c
index 2f67737..56e0d2c 100644
--- a/applets/applets.c
+++ b/applets/applets.c
@@ -612,14 +612,14 @@ int main(int argc, char **argv)
{
const char *s;
- applet_name = argv[0];
#ifdef BB_NOMMU
/* NOMMU re-exec trick sets high-order bit in first byte of name */
- if (applet_name[0] & 0x80) {
+ if (argv[0][0] & 0x80) {
re_execed = 1;
- applet_name[0] &= 0x7f;
+ argv[0][0] &= 0x7f;
}
#endif
+ applet_name = argv[0];
if (applet_name[0] == '-')
applet_name++;
s = strrchr(applet_name, '/');