mirror of
https://github.com/sheumann/hush.git
synced 2024-12-27 01:32:08 +00:00
Make the locale stuff only do the getpid==1 check if BB_INIT is defined
This commit is contained in:
parent
1f3b9f297e
commit
4819c3d477
@ -82,9 +82,13 @@ int main(int argc, char **argv)
|
||||
}
|
||||
#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);
|
||||
|
Loading…
Reference in New Issue
Block a user