mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
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;
|
||||
|
||||
/* 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);
|
||||
|
Loading…
Reference in New Issue
Block a user