1 message in net.sourceforge.lists.courier-users[courier-users] minor bug in rw_local...
FromSent OnAttachments
Alessandro VeselyAug 7, 2006 7:03 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] minor bug in rw_local_filterActions...
From:Alessandro Vesely (ves@tana.it)
Date:Aug 7, 2006 7:03:31 am
List:net.sourceforge.lists.courier-users

--- courier/module.local/local.original.c 2006-05-28 17:29:52.000000000 +0200 +++ courier/module.local/local.c 2006-08-07 15:54:15.495792252 +0200 @@ -693,13 +693,13 @@ if (pid == 0) { char *argv[11]; + int fd0 = fd;

close(0); - if (fd < 0) - open("/dev/null", O_RDONLY); - else - dup2(fd, 0); - close(fd); + if (fd0 < 0) + fd0 = open("/dev/null", O_RDONLY); + dup2(fd0, 0); + close(fd0); dup2(p[1], 1); dup2(p[1], 2); close(p[0]);