busybox.c: ENABLE_LOCALE logic correct.
This commit is contained in:
parent
843c5ef0f9
commit
74078685e6
@ -70,7 +70,7 @@ int main(int argc, char **argv)
|
|||||||
if (*(s++) == '/') bb_applet_name = s;
|
if (*(s++) == '/') bb_applet_name = s;
|
||||||
|
|
||||||
/* Set locale for everybody except `init' */
|
/* Set locale for everybody except `init' */
|
||||||
if(ENABLE_LOCALE_SUPPORT && (!ENABLE_INIT || getpid()==1))
|
if(ENABLE_LOCALE_SUPPORT && getpid() != 1)
|
||||||
setlocale(LC_ALL, "");
|
setlocale(LC_ALL, "");
|
||||||
|
|
||||||
run_applet_by_name(bb_applet_name, argc, argv);
|
run_applet_by_name(bb_applet_name, argc, argv);
|
||||||
|
Loading…
Reference in New Issue
Block a user