From 266f4046b2e4480ced47f17fe13c24dd1b11c69a Mon Sep 17 00:00:00 2001 From: vodz Date: Thu, 29 Sep 2005 08:19:04 +0000 Subject: busybox.c: ENABLE_LOCALE logic correct. git-svn-id: svn://busybox.net/trunk/busybox@11687 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- applets/busybox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applets/busybox.c b/applets/busybox.c index 833e8d372..90ea2bdce 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -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); -- cgit v1.2.3-55-g6feb