1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-03 22:48:03 +02:00

* 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:35:25 +00:00
parent 5880657f5e
commit 1c24b139e7

View File

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