mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
Fixed bug 479. Not a real good fix but a reliable one which limits possible
breakage of other partys of the code.
This commit is contained in:
parent
bd5aa4864d
commit
064a4a6240
33 changed files with 947 additions and 576 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-07-31 Werner Koch <wk@g10code.com>
|
||||
|
||||
* encode.c (encode_crypt_files): Invalidate the whole fd cache.
|
||||
This is a workaround for problems in iobuf's stupid fd cache.
|
||||
* decrypt.c (decrypt_messages): Ditto.
|
||||
* verify.c (verify_files): Ditto.
|
||||
|
||||
2006-07-26 Werner Koch <wk@g10code.com>
|
||||
|
||||
* keygen.c (gen_card_key_with_backup): Initialize sk_{un}protected.
|
||||
|
|
|
@ -183,6 +183,7 @@ decrypt_messages(int nfiles, char *files[])
|
|||
next_file:
|
||||
/* Note that we emit file_done even after an error. */
|
||||
write_status( STATUS_FILE_DONE );
|
||||
iobuf_ioctl( NULL, 2, 0, NULL); /* Invalidate entire cache. */
|
||||
xfree(output);
|
||||
}
|
||||
|
||||
|
|
|
@ -858,6 +858,7 @@ encode_crypt_files(int nfiles, char **files, STRLIST remusr)
|
|||
log_error("encryption of `%s' failed: %s\n",
|
||||
print_fname_stdin(line), g10_errstr(rc) );
|
||||
write_status( STATUS_FILE_DONE );
|
||||
iobuf_ioctl( NULL, 2, 0, NULL); /* Invalidate entire cache. */
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -869,6 +870,7 @@ encode_crypt_files(int nfiles, char **files, STRLIST remusr)
|
|||
log_error("encryption of `%s' failed: %s\n",
|
||||
print_fname_stdin(*files), g10_errstr(rc) );
|
||||
write_status( STATUS_FILE_DONE );
|
||||
iobuf_ioctl( NULL, 2, 0, NULL); /* Invalidate entire cache. */
|
||||
files++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -197,12 +197,15 @@ verify_files( int nfiles, char **files )
|
|||
* spaces, so that we can process nearly all filenames */
|
||||
line[strlen(line)-1] = 0;
|
||||
verify_one_file( line );
|
||||
iobuf_ioctl( NULL, 2, 0, NULL); /* Invalidate entire cache. */
|
||||
}
|
||||
|
||||
}
|
||||
else { /* take filenames from the array */
|
||||
for(i=0; i < nfiles; i++ )
|
||||
for(i=0; i < nfiles; i++ ) {
|
||||
verify_one_file( files[i] );
|
||||
iobuf_ioctl( NULL, 2, 0, NULL); /* Invalidate entire cache. */
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue