From 1fb95e65661f19c050b928694f750f2406eff2ac Mon Sep 17 00:00:00 2001 From: Matthew Booth Date: Wed, 25 Jul 2012 14:17:37 +0100 Subject: fish: Use minimal permissions when initially creating history file --- fish/fish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish/fish.c b/fish/fish.c index ded80ec2..9bb8c90f 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1455,7 +1455,7 @@ cleanup_readline (void) int fd; if (histfile[0] != '\0') { - fd = open (histfile, O_WRONLY|O_CREAT|O_NOCTTY|O_CLOEXEC, 0644); + fd = open (histfile, O_WRONLY|O_CREAT|O_NOCTTY|O_CLOEXEC, 0600); if (fd == -1) { perror (histfile); return; -- cgit