From 6d790129fab85c914f712c339b406f3a97f61261 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 10 Mar 2012 13:05:21 +0100 Subject: [PATCH] * util/getroot.c (exec_pipe): Ensure that the child is not localised. --- ChangeLog | 4 ++++ util/getroot.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 114f1a4e7..841e0e6b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-03-10 Vladimir Serbinenko + + * util/getroot.c (exec_pipe): Ensure that the child is not localised. + 2012-03-10 Vladimir Serbinenko * util/grub-install.in: Check for themes/starfield/theme.txt and not diff --git a/util/getroot.c b/util/getroot.c index 2389fc9a0..b814dabb3 100644 --- a/util/getroot.c +++ b/util/getroot.c @@ -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);