Page MenuHome GnuPG

764_0001-g10-Make-sure-to-have-the-directory-for-trustdb.patch
AbandonedPublic

Authored by gniibe on Feb 10 2016, 2:37 AM.

Details

Reviewers
None
Summary

From 3fa19924003f989afef59ae41d529f5790a5bdd2 Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Wed, 10 Feb 2016 09:46:45 +0900
Subject: [PATCH] g10: Make sure to have the directory for trustdb.

  • g10/tdbio.c (tdbio_set_dbname): Check the directory before calling

take_write_lock.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Thanks to Marc Deslauriers for the bug report.

GnuPG-bug-id: 2246

(backport from master

commit 15b903683f0cf16d7d3b2855f6ea6e52f3d2577c)

g10/tdbio.c | 26 +++++++++++++++-----------
1 file changed, 15 insertions(+), 11 deletions(-)

2.7.0.rc3

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped