diff options
| author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-08-21 05:09:21 +0000 |
|---|---|---|
| committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-08-21 05:09:21 +0000 |
| commit | fc69d4c0980aaa62e0b65ef22bf9bdc322c8eea9 (patch) | |
| tree | e0774dcb7791d9da693cabc8ea0293f1f0605a64 /sysutils/gnome-system-tools/files | |
| parent | Add conflicts to Mesa and xpm ports. Libraries that they install are (diff) | |
Properly pass environment variables to the command line. This fixes a
problem where the root password would also be reported as wrong if, for
example, LANG was set in the environment.
Notes
Notes:
svn path=/head/; revision=116871
Diffstat (limited to 'sysutils/gnome-system-tools/files')
| -rw-r--r-- | sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c b/sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c new file mode 100644 index 000000000000..7a5e54ecaaf6 --- /dev/null +++ b/sysutils/gnome-system-tools/files/patch-src_common_gst-auth.c @@ -0,0 +1,27 @@ +--- src/common/gst-auth.c.orig Sat Aug 21 01:01:33 2004 ++++ src/common/gst-auth.c Sat Aug 21 01:06:24 2004 +@@ -300,6 +300,7 @@ + lc_all = getenv ("LC_ALL"); + lang = getenv ("LANG"); + ++#ifndef __FreeBSD__ + if (lc_all) + g_string_append_printf (command, "export LC_ALL=\"%s\" && ", lc_all); + else if (lc_messages) +@@ -308,6 +309,16 @@ + g_string_append_printf (command, "export LANG=\"%s\" && ", lang); + else if (language) + g_string_append_printf (command, "export LANGUAGE=\"%s\" && ", language); ++#else ++ if (lc_all) ++ g_string_append_printf (command, "env LC_ALL=\"%s\" ", lc_all); ++ else if (lc_messages) ++ g_string_append_printf (command, "env LC_MESSAGES=\"%s\" ", lc_messages); ++ else if (lang) ++ g_string_append_printf (command, "env LANG=\"%s\" ", lang); ++ else if (language) ++ g_string_append_printf (command, "env LANGUAGE=\"%s\" ", language); ++#endif + } + + void |
