diff options
author | David Shaw <[email protected]> | 2006-05-23 22:04:09 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2006-05-23 22:04:09 +0000 |
commit | 782a70e52210f12879926b947862d8e8bc0bb4cc (patch) | |
tree | b985f1babf0f27e6d1e1985910cfa676270d5a87 /util/miscutil.c | |
parent | * configure.ac: Add --disable-optimization. This is handy for debugging (diff) | |
download | gnupg-782a70e52210f12879926b947862d8e8bc0bb4cc.tar.gz gnupg-782a70e52210f12879926b947862d8e8bc0bb4cc.zip |
* 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.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions