Re: [PATCH] login-utils: use getdtablesize() correctly in login.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 20, 2012 at 10:58:28AM -0400, chas williams - CONTRACTOR wrote:
>     login-utils: use getdtablesize() correctly in login.c
>     
>     getdtablesize() is the number of descriptors and since decriptors start
>     at 0, its value isnt the largest descriptors possible.  One should use
>     getdtablesize() - 1 instead.

 Applied, thanks.

 I have also added fallback for the getdtablesize() to lib/fileutils.c, it
 seems that the function is not too portable.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux