From 82f23f8570582e5d2ad1d264dd58b97fa26b4959 Mon Sep 17 00:00:00 2001 From: Jules Colding Date: Sat, 12 May 2007 10:37:45 +0000 Subject: Fix errno reset issue svn path=/trunk/; revision=33516 --- plugins/sa-junk-plugin/em-junk-filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/sa-junk-plugin/em-junk-filter.c b/plugins/sa-junk-plugin/em-junk-filter.c index 0cf5ff6caa..534f6673cd 100644 --- a/plugins/sa-junk-plugin/em-junk-filter.c +++ b/plugins/sa-junk-plugin/em-junk-filter.c @@ -143,10 +143,10 @@ pipe_to_sa_full (CamelMimeMessage *msg, const char *in, char **argv, int rv_err, } if (output_buffer && pipe (out_fds) == -1) { - close (fds [0]); - close (fds [1]); errnosav = errno; d(printf ("failed to create a pipe (for use with spamassassin: %s\n", strerror (errno))); + close (fds [0]); + close (fds [1]); errno = errnosav; return rv_err; } -- cgit v1.2.3