diff options
Diffstat (limited to 'src/history.c')
-rw-r--r-- | src/history.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/history.c b/src/history.c index a9a1c12..421973e 100644 --- a/src/history.c +++ b/src/history.c @@ -247,6 +247,10 @@ history_save (void) return; } + if (fchmod (fileno (f), 0600) == -1) + PRINT_ERROR (("ratpoison: could not change mode to 0600 on %s - %s\n", + filename, strerror (errno))); + list_for_each_entry(item, &histories[hist_COMMAND].head, node) { fputs(item->line, f); putc('\n', f); |