aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
Diffstat (limited to 'applets')
-rw-r--r--applets/busybox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/applets/busybox.c b/applets/busybox.c
index 5334827ca..47a8b4097 100644
--- a/applets/busybox.c
+++ b/applets/busybox.c
@@ -7,7 +7,9 @@
7#include "busybox.h" 7#include "busybox.h"
8 8
9const char *applet_name ATTRIBUTE_EXTERNALLY_VISIBLE; 9const char *applet_name ATTRIBUTE_EXTERNALLY_VISIBLE;
10#ifdef BB_NOMMU
10smallint re_execed; 11smallint re_execed;
12#endif
11 13
12#ifdef CONFIG_FEATURE_INSTALLER 14#ifdef CONFIG_FEATURE_INSTALLER
13/* 15/*
@@ -60,11 +62,13 @@ int main(int argc, char **argv)
60{ 62{
61 const char *s; 63 const char *s;
62 64
65#ifdef BB_NOMMU
63 /* NOMMU re-exec trick sets high-order bit in first byte of name */ 66 /* NOMMU re-exec trick sets high-order bit in first byte of name */
64 if (argv[0][0] & 0x80) { 67 if (argv[0][0] & 0x80) {
65 re_execed = 1; 68 re_execed = 1;
66 argv[0][0] &= 0x7f; 69 argv[0][0] &= 0x7f;
67 } 70 }
71#endif
68 72
69 applet_name = argv[0]; 73 applet_name = argv[0];
70 if (*applet_name == '-') 74 if (*applet_name == '-')