aboutsummaryrefslogtreecommitdiffhomepage
path: root/history.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-29 17:52:50 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-04-29 17:52:50 -0700
commit1242e63b6ac5c25f61cf08397a849b3c022f3b51 (patch)
tree00bd4bdd64b1495bccc15d50fc6cb2d29821f30d /history.cpp
parentf30872a7b55da98c5b027edc4195441743f3bfab (diff)
Use mode 0600 for history file
Fixes #2041
Diffstat (limited to 'history.cpp')
-rw-r--r--history.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/history.cpp b/history.cpp
index 23acc045..a4ad5435 100644
--- a/history.cpp
+++ b/history.cpp
@@ -1405,7 +1405,7 @@ bool history_t::save_internal_via_rewrite()
{
/* It was successfully templated; try opening it atomically */
tmp_name = str2wcstring(narrow_str);
- out_fd = wopen_cloexec(tmp_name, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC, 0644);
+ out_fd = wopen_cloexec(tmp_name, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC, 0600);
}
#endif
free(narrow_str);