diff options
author | NIIBE Yutaka <[email protected]> | 2015-06-16 03:01:28 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-06-16 03:01:28 +0000 |
commit | ae38cbbca493725305c4131fbcafa716ae0c6109 (patch) | |
tree | 27f4ff4cdc4ff27dc222ed5fb688d24b21c9e30a | |
parent | g10: Fix a race condition initially creating trustdb. (diff) | |
download | gnupg-ae38cbbca493725305c4131fbcafa716ae0c6109.tar.gz gnupg-ae38cbbca493725305c4131fbcafa716ae0c6109.zip |
g10: Fix a race condition initially creating trustdb.
* g10/tdbio.c (take_write_lock, tdbio_set_dbname): Fix message.
-rw-r--r-- | g10/tdbio.c | 6 |
1 files 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; |