projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mention Ctrl-PgUp/PgDn
[u/mdw/putty]
/
unix
/
uxcons.c
diff --git
a/unix/uxcons.c
b/unix/uxcons.c
index
844b674
..
c172b0a
100644
(file)
--- a/
unix/uxcons.c
+++ b/
unix/uxcons.c
@@
-25,6
+25,7
@@
void cleanup_exit(int code)
* Clean up.
*/
sk_cleanup();
* Clean up.
*/
sk_cleanup();
+ random_save_seed();
exit(code);
}
exit(code);
}
@@
-200,9
+201,6
@@
int askappend(void *frontend, char *filename)
char line[32];
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);
if (console_batch_mode) {
fprintf(stderr, msgtemplate_batch, FILENAME_MAX, filename);
fflush(stderr);
@@
-258,6
+256,7
@@
void old_keyfile_warning(void)
void logevent(void *frontend, char *string)
{
void logevent(void *frontend, char *string)
{
+ log_eventlog(logctx, string);
}
int console_get_line(const char *prompt, char *str,
}
int console_get_line(const char *prompt, char *str,
@@
-290,7
+289,7
@@
int console_get_line(const char *prompt, char *str,
str[i] = '\0';
if (is_pw)
str[i] = '\0';
if (is_pw)
- fputs("\
r\
n", stdout);
+ fputs("\n", stdout);
}
return 1;
}
}
return 1;
}