1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we are

called with them closed.  This is to protect our keyring/trustdb files
from corruption if they get attached to one of the standard fds.  Print a
warning if possible that this has happened, and fail completely if we
cannot reopen (should never happen). (main): Call it here.
This commit is contained in:
David Shaw 2006-05-23 22:04:09 +00:00
parent 8fa55e28fe
commit 782a70e522
2 changed files with 72 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2006-05-23 David Shaw <dshaw@jabberwocky.com>
* gpg.c (reopen_std): New function to reopen fd 0, 1, or 2 if we
are called with them closed. This is to protect our
keyring/trustdb files from corruption if they get attached to one
of the standard fds. Print a warning if possible that this has
happened, and fail completely if we cannot reopen (should never
happen).
(main): Call it here.
2006-05-22 David Shaw <dshaw@jabberwocky.com>
* parse-packet.c (dump_sig_subpkt, parse_signature),