projects
/
platform
/
upstream
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
843c5ef
)
busybox.c: ENABLE_LOCALE logic correct.
author
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Thu, 29 Sep 2005 08:19:04 +0000
(08:19 -0000)
committer
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Thu, 29 Sep 2005 08:19:04 +0000
(08:19 -0000)
applets/busybox.c
patch
|
blob
|
history
diff --git
a/applets/busybox.c
b/applets/busybox.c
index
833e8d3
..
90ea2bd
100644
(file)
--- 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);