Home GnuPG
Diffusion GnuPG 6f992d94ea70

g10: Fix a race condition initially creating trustdb.
6f992d94ea70Unpublished

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 dotlock_create.

(backported from 2.1 commit fe5c6edaed78839303d67e01e141cfc6b5de9aec)

Details

Provenance
gniibeAuthored on Jun 15 2015, 7:38 AM
Parents
rGf3b00d88efa2: g10: detects public key encryption packet error properly.
Branches
Unknown
Tags
Unknown

Event Timeline

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