1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01: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:
Werner Koch 2003-06-08 21:19:20 +00:00
parent 75b4e369eb
commit 16d1456ac3
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-06-08 Werner Koch <wk@gnupg.org>
* import.c (import_keys): Invalidate the cache so that the file
descriptor gets closed. Fixes bug reported by Juan F. Codagnone.
2003-06-07 David Shaw <dshaw@jabberwocky.com>
* keyedit.c (sign_uids): Do not sign expired uids without --expert

View File

@ -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) );