busybox.c: ENABLE_LOCALE logic correct.

This commit is contained in:
"Vladimir N. Oleynik" 2005-09-29 08:19:04 +00:00
parent 843c5ef0f9
commit 74078685e6

View 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);