diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 23:32:37 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-04-10 23:32:37 +0000 |
commit | f1a7141cfcacf606ae321faa58c45617045460fe (patch) | |
tree | 6b2f3cabea3c78a1f13a1beb30074881f643707d /applets | |
parent | 80d14beae9ebe64d3be1e6c2771f292977cf6d2c (diff) | |
download | busybox-f1a7141cfcacf606ae321faa58c45617045460fe.tar.gz |
random NOMMU fixes. compressed --help really does work for NOMMU! /me happy
Diffstat (limited to 'applets')
-rw-r--r-- | applets/applets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/applets/applets.c b/applets/applets.c index 2f677372d..56e0d2ccc 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, '/'); |