* util/getroot.c (exec_pipe): Ensure that the child is not localised.
This commit is contained in:
parent
005f46c94a
commit
6d790129fa
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* util/getroot.c (exec_pipe): Ensure that the child is not localised.
|
||||||
|
|
||||||
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* util/grub-install.in: Check for themes/starfield/theme.txt and not
|
* util/grub-install.in: Check for themes/starfield/theme.txt and not
|
||||||
|
|
|
@ -237,6 +237,8 @@ exec_pipe (char **argv, int *fd)
|
||||||
else if (mdadm_pid == 0)
|
else if (mdadm_pid == 0)
|
||||||
{
|
{
|
||||||
/* Child. */
|
/* Child. */
|
||||||
|
/* Ensure child is not localised. */
|
||||||
|
setenv ("LC_ALL", "C", 1);
|
||||||
|
|
||||||
close (mdadm_pipe[0]);
|
close (mdadm_pipe[0]);
|
||||||
dup2 (mdadm_pipe[1], STDOUT_FILENO);
|
dup2 (mdadm_pipe[1], STDOUT_FILENO);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue