From ae38cbbca493725305c4131fbcafa716ae0c6109 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 16 Jun 2015 12:01:28 +0900 Subject: [PATCH] g10: Fix a race condition initially creating trustdb. * g10/tdbio.c (take_write_lock, tdbio_set_dbname): Fix message. --- g10/tdbio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/g10/tdbio.c b/g10/tdbio.c index 579db63e8..be7cc1d26 100644 --- a/g10/tdbio.c +++ b/g10/tdbio.c @@ -100,12 +100,12 @@ take_write_lock (void) if (!lockhandle) lockhandle = dotlock_create (db_name, 0); if (!lockhandle) - log_fatal ( _("can't create lock for '%s'\n"), db_name ); + log_fatal ( _("can't create lock for `%s'\n"), db_name ); if (!is_locked) { if (dotlock_take (lockhandle, -1) ) - log_fatal ( _("can't lock '%s'\n"), db_name ); + log_fatal ( _("can't lock `%s'\n"), db_name ); else is_locked = 1; return 0; @@ -517,7 +517,7 @@ tdbio_set_dbname( const char *new_dbname, int create, int *r_nofile) if( access( fname, R_OK ) ) { if( errno != ENOENT ) - log_fatal( _("can't access '%s': %s\n"), fname, strerror(errno) ); + log_fatal( _("can't access `%s': %s\n"), fname, strerror(errno) ); if (!create) *r_nofile = 1;