fish: Use minimal permissions when initially creating history file

(cherry picked from commit 1fb95e6566)
This commit is contained in:
Matthew Booth
2012-07-25 14:17:37 +01:00
committed by Richard W.M. Jones
parent 0fdffa8a3e
commit 03edaeee83

View File

@@ -1436,7 +1436,7 @@ cleanup_readline (void)
int fd;
if (histfile[0] != '\0') {
fd = open (histfile, O_WRONLY|O_CREAT, 0644);
fd = open (histfile, O_WRONLY|O_CREAT, 0600);
if (fd == -1) {
perror (histfile);
return;