fix off-by-one in dup2

Eric Blake eblake@redhat.com
Sat Nov 23 13:19:00 GMT 2013


On 10/15/2013 08:06 AM, Christopher Faylor wrote:
> On Wed, Sep 25, 2013 at 05:26:25PM -0600, Eric Blake wrote:
>> Solves the segfault here: http://cygwin.com/ml/cygwin/2013-09/msg00397.html
>> but does not address the fact that we are still screwy with regards to
>> rlimit.
> 
> Corinna reminded me about this.
> 
> Sorry for the delay in responding.  I was investigating if setdtablesize
> should set an errno on error but it is difficult to say if it should
> since it seems not to be a POSIX or Linux.  So, I guess we can just say
> that it should set EINVAL.  Would you mind making that minor change and
> checking this in?

Yikes, I still haven't done this (and was reminded by today's
announcement to test snapshots).  I'll try to get to it pronto.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20131123/fc6e3c3f/attachment.sig>


More information about the Cygwin-patches mailing list