Some more patchelttes from Larry Doolittle.
[oweals/busybox.git] / busybox.c
index 41b6069edb79bc0b4d4251296fc90044dd5eb5dc..f3d0c4c2f02397b325872717b31bfb775d0783ea 100644 (file)
--- a/busybox.c
+++ b/busybox.c
@@ -76,15 +76,19 @@ int main(int argc, char **argv)
 
 #ifdef BB_SH
        /* Add in a special case hack -- whenever **argv == '-'
-        * (i.e. '-su' or '-sh') always invoke the shell */
+        * (i.e., '-su' or '-sh') always invoke the shell */
        if (**argv == '-' && *(*argv+1)!= '-') {
                applet_name = "sh";
        }
 #endif
 
-#ifdef BB_LOCALE_SUPPORT
+#ifdef BB_LOCALE_SUPPORT 
+#ifdef BB_INIT
        if(getpid()!=1) /* Do not set locale for `init' */
+#endif
+       {
                setlocale(LC_ALL, "");
+       }
 #endif
 
        run_applet_by_name(applet_name, argc, argv);