Home GnuPG
Diffusion GnuPG 6f72aa821407

kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.

Description

kbx: Fix deadlock in gpgsm on Windows due to a sharing violation.

* kbx/keybox-init.c (keybox_lock) [W32]: Use _keybox_close_file
instead of fclose so that a close is done if the file is opened by
another handle.
* kbx/keybox-search.c (keybox_search): Remember the last offset and
use that in NEXT search mode if we had to re-open the file.
  • GnuPG-bug-id: T4505
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 14 2019, 7:05 PM
Parents
rG3a28706cfd96: gpgconf: Before --launch check that the config file is fine.
Branches
Unknown
Tags
Unknown
Tasks
T4505: SM, W32: GPGSM hangs up the GnuPG System