Improve handling of random_seed read errors.
authorWerner Koch <wk@gnupg.org>
Wed, 7 Nov 2012 17:06:27 +0000 (18:06 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 7 Nov 2012 17:06:27 +0000 (18:06 +0100)
commitb1abc01d4ad199258b3d2fb579ac06c6fea747fd
tree6a9ff5019a2337e0b5f766b5bef050673a5029c2
parenta74f05c32deb12373111510d4395ad52eb53d342
Improve handling of random_seed read errors.

* cipher/random.c (read_seed_file): Distinguish between errors and
short reads.
--

This should help to avoid program aborts due to races.  Nevertheless a
better and cross-platform locking would be a more solid solution.

GnuPG-bug-id: 1439
cipher/random.c