aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2010-09-24 13:06:56 +0000
committerWerner Koch <[email protected]>2010-09-24 13:06:56 +0000
commita384e94b734f411708496d4bde43eddabfa6884f (patch)
tree0609fc5b7e1ace08b9174535ae343191e5e4b2f3
parentReturn a more specific error code for missing issuer certificates (diff)
downloadgnupg-a384e94b734f411708496d4bde43eddabfa6884f.tar.gz
gnupg-a384e94b734f411708496d4bde43eddabfa6884f.zip
Fix bug 1285
-rw-r--r--NEWS2
-rw-r--r--agent/ChangeLog6
-rw-r--r--agent/gpg-agent.c17
-rw-r--r--doc/gpgsm.texi4
-rw-r--r--g10/card-util.c3
5 files changed, 27 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index 3ade21fd0..470914277 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,8 @@ Noteworthy changes in version 2.0.17 (unreleased)
* Fixed output of "gpgconf --check-options".
+ * gpg-agent now tests for a newly created gpg-agent.conf after a HUP.
+
Noteworthy changes in version 2.0.16 (2010-07-19)
-------------------------------------------------
diff --git a/agent/ChangeLog b/agent/ChangeLog
index 3c95cb4f2..6e1b45eee 100644
--- a/agent/ChangeLog
+++ b/agent/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-24 Werner Koch <[email protected]>
+
+ * gpg-agent.c (main, reread_configuration): Always test whether
+ the default configuration file has been created in the meantime.
+ Fixes bug#1285.
+
2010-08-11 Werner Koch <[email protected]>
* call-pinentry.c (agent_askpin, agent_get_passphrase): Fix
diff --git a/agent/gpg-agent.c b/agent/gpg-agent.c
index 1aa706d24..7e359479a 100644
--- a/agent/gpg-agent.c
+++ b/agent/gpg-agent.c
@@ -724,6 +724,12 @@ main (int argc, char **argv )
if( parse_debug )
log_info (_("NOTE: no default option file `%s'\n"),
configname );
+ /* Save the default conf file name so that
+ reread_configuration is able to test whether the
+ config file has been created in the meantime. */
+ xfree (config_filename);
+ config_filename = configname;
+ configname = NULL;
}
else
{
@@ -811,10 +817,15 @@ main (int argc, char **argv )
fclose( configfp );
configfp = NULL;
/* Keep a copy of the name so that it can be read on SIGHUP. */
- config_filename = configname;
+ if (config_filename != configname)
+ {
+ xfree (config_filename);
+ config_filename = configname;
+ }
configname = NULL;
goto next_pass;
}
+
xfree (configname);
configname = NULL;
if (log_get_errorcount(0))
@@ -1332,8 +1343,8 @@ reread_configuration (void)
fp = fopen (config_filename, "r");
if (!fp)
{
- log_error (_("option file `%s': %s\n"),
- config_filename, strerror(errno) );
+ log_info (_("option file `%s': %s\n"),
+ config_filename, strerror(errno) );
return;
}
diff --git a/doc/gpgsm.texi b/doc/gpgsm.texi
index fdf1672b4..f94450257 100644
--- a/doc/gpgsm.texi
+++ b/doc/gpgsm.texi
@@ -31,7 +31,7 @@
@command{gpgsm} is a tool similar to @command{gpg} to provide digital
encryption and signing services on X.509 certificates and the CMS
protocol. It is mainly used as a backend for S/MIME mail processing.
-@command{gpgsm} includes a full features certificate management and
+@command{gpgsm} includes a full featured certificate management and
complies with all rules defined for the German Sphinx project.
@manpause
@@ -286,7 +286,7 @@ smartcard is not yet supported.
@node GPGSM Options
@section Option Summary
-@command{GPGSM} comes features a bunch of options to control the exact behaviour
+@command{GPGSM} features a bunch of options to control the exact behaviour
and to change the default configuration.
@menu
diff --git a/g10/card-util.c b/g10/card-util.c
index 9bd5013a1..caf934dd2 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -207,6 +207,9 @@ get_manufacturer (unsigned int no)
case 0x0005: return "ZeitControl";
case 0x002A: return "Magrathea";
+
+ case 0xF517: return "FSIJ";
+
/* 0x00000 and 0xFFFF are defined as test cards per spec,
0xFFF00 to 0xFFFE are assigned for use with randomly created
serial numbers. */