mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-27 20:25:12 +00:00
parent
f30872a7b5
commit
1242e63b6a
1 changed files with 1 additions and 1 deletions
|
@ -1405,7 +1405,7 @@ bool history_t::save_internal_via_rewrite()
|
||||||
{
|
{
|
||||||
/* It was successfully templated; try opening it atomically */
|
/* It was successfully templated; try opening it atomically */
|
||||||
tmp_name = str2wcstring(narrow_str);
|
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
|
#endif
|
||||||
free(narrow_str);
|
free(narrow_str);
|
||||||
|
|
Loading…
Reference in a new issue