Rainer Weikusat writes the following:
>
>@@ -342,7 +348,8 @@
>               if (rp->renamed[i] != EMPTY) {
>                       if (!drop) {
>                               close(i);
>-                              copyfd(rp->renamed[i], i);
>+                              if (rp->renamed[i] != CLOSEFD)
>+                                      copyfd(rp->renamed[i], i);
>                       }
>                       close(rp->renamed[i]);

This last close should also be protected by if(rp->renamed[i]!=CLOSEFD) to
avoid calling close(-3)

>               }
>

-- 
Alan Curry
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to