Re: [PATCH] Return correct value for uuid_generate_time_safe

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

 



On Wed, Jun 17, 2015 at 03:59:18PM +0000, Romain Bouvier wrote:
> Make return value consistent for consecutive calls.
> If you call uuid_generate_time_safe, it should always
> return -1 if it can't guarantee uniqueness.
> Without this patch, on consecutive calls where it can't guarantee
> uniqueness, the first call returns -1, but later calls return 0.
> 
> Reported-by: Romain Bouvier <skunnyk@xxxxxxxxxxxx>
> Signed-off-by: Andreas Henriksson <andreas@xxxxxxxx>
> 
> ---
>  libuuid/src/gen_uuid.c | 3 +++
>  1 file changed, 3 insertions(+)

 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