util-linux/libuuid
Petr Uzel 6126f7a53c libuuid: avoid double open and leaking descriptor
We are opening /dev/urandom twice in uuid_generate(): first to check if
the file is available and then later __uuid_generate_random() again to
actually get the random data. Moreover, descriptor from the first open
is leaking.

Fix by passign the descriptor down the stack and reusing it there.

References: http://marc.info/?l=util-linux-ng&m=133406051131131&w=2

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
2012-05-04 15:14:24 +02:00
..
man libuuid: fix typo in uuid_compare manpage 2012-04-27 12:30:42 +02:00
src libuuid: avoid double open and leaking descriptor 2012-05-04 15:14:24 +02:00
.gitignore build-sys: use top-level directory for libuuid rather than shlibs/uuid 2011-06-09 21:54:05 +02:00
COPYING docs: remove duplicated text 2011-08-30 19:50:34 +02:00
Makefile.am build-sys: enhance readability of the autotools files 2012-02-28 13:29:35 +01:00
uuid.pc.in build-sys: use top-level directory for libuuid rather than shlibs/uuid 2011-06-09 21:54:05 +02:00