* import.c (import_keys_internal): Invalidate the cache so that

the file descriptor gets closed.  Fixes bug reported by Juan
F. Codagnone.
This commit is contained in:
Werner Koch 2003-06-08 21:23:48 +00:00
parent bd820bad4f
commit 5880657f5e
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2003-06-08 Werner Koch <wk@gnupg.org>
* import.c (import_keys_internal): Invalidate the cache so that
the file descriptor gets closed. Fixes bug reported by Juan
F. Codagnone.
2003-06-04 David Shaw <dshaw@jabberwocky.com>
* options.skel: Use new hkp://subkeys.pgp.net as sample keyserver

View File

@ -168,6 +168,8 @@ import_keys_internal( IOBUF inp, char **fnames, int nnames,
else {
rc = import( inp2, fname, stats, options );
iobuf_close(inp2);
/* must invalidate that ugly cache to actually close it */
iobuf_ioctl (NULL, 2, 0, (char*)fname);
if( rc )
log_error("import from `%s' failed: %s\n", fname,
g10_errstr(rc) );