mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-09 07:13:43 -05:00
Each platform's implementation of askappend() is no longer required
to consult cfg.logxfovr, because it gets done once in logging.c. askappend() is now called only when a question _really_ needs to be asked of the user. Also in this checkin, cleanup_exit() in console.c no longer consults cfg.protocol to decide whether to save the random seed, because random_save_seed() can make that decision for itself and do it better. [originally from svn r2552]
This commit is contained in:
@ -26,12 +26,10 @@ void cleanup_exit(int code)
|
||||
sk_cleanup();
|
||||
WSACleanup();
|
||||
|
||||
if (cfg.protocol == PROT_SSH) {
|
||||
random_save_seed();
|
||||
random_save_seed();
|
||||
#ifdef MSCRYPTOAPI
|
||||
crypto_wrapup();
|
||||
crypto_wrapup();
|
||||
#endif
|
||||
}
|
||||
|
||||
exit(code);
|
||||
}
|
||||
@ -212,9 +210,6 @@ int askappend(void *frontend, char *filename)
|
||||
|
||||
char line[32];
|
||||
|
||||
if (cfg.logxfovr != LGXF_ASK) {
|
||||
return ((cfg.logxfovr == LGXF_OVR) ? 2 : 1);
|
||||
}
|
||||
if (console_batch_mode) {
|
||||
fprintf(stderr, msgtemplate_batch, FILENAME_MAX, filename);
|
||||
fflush(stderr);
|
||||
|
Reference in New Issue
Block a user