mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* import.c (import_keys): Invalidate the cache so that the file
descriptor gets closed. Fixes bug reported by Juan F. Codagnone.
This commit is contained in:
parent
75b4e369eb
commit
16d1456ac3
2 changed files with 7 additions and 0 deletions
|
@ -163,6 +163,8 @@ import_keys( char **fnames, int nnames, int fast,
|
|||
else {
|
||||
int rc = import( inp, fast, fname, stats, options );
|
||||
iobuf_close(inp);
|
||||
/* 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) );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue