* 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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue