aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-02-23 14:16:29 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-02-23 14:16:29 +0800
commit40b290ed61d1cae75c0ec136b48622adacc8b548 (patch)
tree2d47d3ab6daf69b98df4dcbca0954cbfdf0862aa /mail/mail-config.c
parentc9030af34bae1fa74ca76e0ec59d29b22a765f45 (diff)
downloadgsoc2013-evolution-40b290ed61d1cae75c0ec136b48622adacc8b548.tar.gz
gsoc2013-evolution-40b290ed61d1cae75c0ec136b48622adacc8b548.tar.zst
gsoc2013-evolution-40b290ed61d1cae75c0ec136b48622adacc8b548.zip
** See bug #40515
2005-02-22 Not Zed <NotZed@Ximian.com> ** See bug #40515 * mail-config.c (mail_config_signature_run_script): run the script using /bin/sh -c, so arguments may be passed to the script. svn path=/trunk/; revision=28860
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 0d0943b254..a3c2d6819e 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -978,7 +978,7 @@ mail_config_signature_run_script (const char *script)
int result, status;
int in_fds[2];
pid_t pid;
-
+
if (pipe (in_fds) == -1) {
g_warning ("Failed to create pipe to '%s': %s", script, g_strerror (errno));
return NULL;
@@ -1001,7 +1001,7 @@ mail_config_signature_run_script (const char *script)
fcntl (i, F_SETFD, FD_CLOEXEC);
}
- execlp (script, script, NULL);
+ execlp("/bin/sh", "/bin/sh", "-c", script, NULL);
g_warning ("Could not execute %s: %s\n", script, g_strerror (errno));
_exit (255);
} else if (pid < 0) {