Re: [PATCH] libuuid: avoid double open and leaking fd (reworked)

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

 



On Sun, May 06, 2012 at 09:55:53PM +0200, Petr Uzel wrote:
> This is better than calling random_get_fd() twice, passing the file
> descriptor down the stack and reusing it in next call to
> random_get_fd().

 Yep, nice :-)

>  fdisk/fdiskdoslabel.c  |    2 +-
>  include/randutils.h    |    2 +-
>  lib/randutils.c        |    8 +++-----
>  libuuid/src/gen_uuid.c |   28 ++++++++++++++++++----------
>  libuuid/src/uuidd.h    |    2 +-
>  misc-utils/uuidd.c     |    4 ++--
>  6 files changed, 26 insertions(+), 20 deletions(-)

 Applied, thanks.

-- 
 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