busybox.c: ENABLE_LOCALE logic correct.
author"Vladimir N. Oleynik" <dzo@simtreas.ru>
Thu, 29 Sep 2005 08:19:04 +0000 (08:19 -0000)
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>
Thu, 29 Sep 2005 08:19:04 +0000 (08:19 -0000)
applets/busybox.c

index 833e8d3..90ea2bd 100644 (file)
@@ -70,7 +70,7 @@ int main(int argc, char **argv)
                if (*(s++) == '/') bb_applet_name = s;
 
        /* Set locale for everybody except `init' */
-       if(ENABLE_LOCALE_SUPPORT && (!ENABLE_INIT || getpid()==1))
+       if(ENABLE_LOCALE_SUPPORT && getpid() != 1)
                setlocale(LC_ALL, "");
 
        run_applet_by_name(bb_applet_name, argc, argv);