* util/getroot.c (exec_pipe): Ensure that the child is not localised.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-03-10 13:05:21 +01:00
parent 005f46c94a
commit 6d790129fa
2 changed files with 6 additions and 0 deletions

View file

@ -237,6 +237,8 @@ exec_pipe (char **argv, int *fd)
else if (mdadm_pid == 0)
{
/* Child. */
/* Ensure child is not localised. */
setenv ("LC_ALL", "C", 1);
close (mdadm_pipe[0]);
dup2 (mdadm_pipe[1], STDOUT_FILENO);