dirmngr/src (ChangeLog certcache.c dirmngr.c)
cvs user wk
cvs at cvs.gnupg.org
Thu Nov 18 20:09:21 CET 2004
Date: Thursday, November 18, 2004 @ 20:15:33
Author: wk
Path: /cvs/dirmngr/dirmngr/src
Modified: ChangeLog certcache.c dirmngr.c
* dirmngr.c (main): Do not cd / if not running detached.
* dirmngr.c (handle_signal): Reinitialize the certificate cache on
a HUP.
(struct opts): Add --homedir to enable the already implemented code.
(handle_signal): Print stats on SIGUSR1.
* certcache.c (clean_cache_slot, cert_cache_init)
(cert_cache_deinit): New.
(acquire_cache_read_lock, acquire_cache_write_lock)
(release_cache_lock): New. Use them where needed.
(put_cert): Renamed from put_loaded_cert.
(cache_cert): New.
(cert_cache_print_stats): New.
(compare_serialno): Fixed.
-------------+
ChangeLog | 4 ++++
certcache.c | 4 +++-
dirmngr.c | 11 +++++------
3 files changed, 12 insertions(+), 7 deletions(-)
Index: dirmngr/src/ChangeLog
diff -u dirmngr/src/ChangeLog:1.22 dirmngr/src/ChangeLog:1.23
--- dirmngr/src/ChangeLog:1.22 Thu Nov 18 16:37:48 2004
+++ dirmngr/src/ChangeLog Thu Nov 18 20:15:33 2004
@@ -1,5 +1,7 @@
2004-11-18 Werner Koch <wk at g10code.com>
+ * dirmngr.c (main): Do not cd / if not running detached.
+
* dirmngr-client.c: New options --cache-cert and --validate.
(do_cache, do_validate): New.
* server.c (cmd_cachecert, cmd_validate): New.
@@ -11,6 +13,7 @@
a HUP.
(struct opts): Add --homedir to enable the already implemented code.
(handle_signal): Print stats on SIGUSR1.
+
* certcache.c (clean_cache_slot, cert_cache_init)
(cert_cache_deinit): New.
(acquire_cache_read_lock, acquire_cache_write_lock)
@@ -18,6 +21,7 @@
(put_cert): Renamed from put_loaded_cert.
(cache_cert): New.
(cert_cache_print_stats): New.
+ (compare_serialno): Fixed.
2004-11-16 Werner Koch <wk at g10code.com>
Index: dirmngr/src/certcache.c
diff -u dirmngr/src/certcache.c:1.2 dirmngr/src/certcache.c:1.3
--- dirmngr/src/certcache.c:1.2 Thu Nov 18 16:37:48 2004
+++ dirmngr/src/certcache.c Thu Nov 18 20:15:33 2004
@@ -127,7 +127,9 @@
}
if (n_a != n_b)
return 0;
-
+ a++;
+ b++;
+
for (; n_a && *a == *b; n_a--, a++, b++)
;
return !!n_a;
Index: dirmngr/src/dirmngr.c
diff -u dirmngr/src/dirmngr.c:1.42 dirmngr/src/dirmngr.c:1.43
--- dirmngr/src/dirmngr.c:1.42 Thu Nov 18 16:37:48 2004
+++ dirmngr/src/dirmngr.c Thu Nov 18 20:15:33 2004
@@ -823,14 +823,13 @@
log_get_prefix (&oldflags);
log_set_prefix (NULL, oldflags | JNLIB_LOG_RUN_DETACHED);
opt.running_detached = 1;
- }
- if (chdir("/"))
- {
- log_error (_("chdir to / failed: %s\n"), strerror (errno));
- dirmngr_exit (1);
+ if (chdir("/"))
+ {
+ log_error (_("chdir to / failed: %s\n"), strerror (errno));
+ dirmngr_exit (1);
+ }
}
-
launch_ripper_thread ();
cert_cache_init ();
More information about the Gnupg-commits
mailing list