Page MenuHome GnuPG

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

Authored by gniibe on Feb 12 2016, 6:32 AM.

Details

Reviewers
None
Summary

From d957e4388f72581b1ec801613b5629b5ea3f586d Mon Sep 17 00:00:00 2001
From: NIIBE Yutaka <gniibe@fsij.org>
Date: Fri, 12 Feb 2016 10:00:31 +0900
Subject: [PATCH] g10: Make sure to have the directory for trustdb.

  • g10/tdbio.c (tdbio_set_dbname): Return earlier if !CREATE. Check

the directory and create it if none before calling take_write_lock.

Thanks to Marc Deslauriers for the bug report and his patch.

GnuPG-bug-id: 2246

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

(backport from master

commit 2f3e42047d17313eeb38d354048f343158402a8d)

g10/tdbio.c | 97 +++++++++++++++++++++++++++++++++----------------------------
1 file changed, 52 insertions(+), 45 deletions(-)

2.7.0

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped