Home GnuPG
Diffusion GnuPG 2371553af156

g10: Fix a race condition initially creating trustdb.
2371553af156Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

g10: Fix a race condition initially creating trustdb.

* g10/tdbio.c (take_write_lock, release_write_lock): New.
(put_record_into_cache, tdbio_sync, tdbio_end_transaction): Use
new lock functions.
(tdbio_set_dbname): Fix the race.
(open_db): Don't call create_dotlock.

(backported from commit fe5c6edaed78839303d67e01e141cfc6b5de9aec)

Details

Provenance
gniibeAuthored on May 28 2015, 10:08 AM
Parents
rGc30bcdeac011: po:Update Japanese translation.
Branches
Unknown
Tags
Unknown

Event Timeline

NIIBE Yutaka <gniibe@fsij.org> committed rG2371553af156: g10: Fix a race condition initially creating trustdb. (authored by NIIBE Yutaka <gniibe@fsij.org>).Jun 15 2015, 7:26 AM