summaryrefslogtreecommitdiffstats
path: root/fish/fish.c
diff options
context:
space:
mode:
authorMatthew Booth <mbooth@redhat.com>2012-07-25 14:17:37 +0100
committerMatthew Booth <mbooth@redhat.com>2012-07-25 14:17:37 +0100
commit1fb95e65661f19c050b928694f750f2406eff2ac (patch)
tree3a56b2f7d40cf3fb72cbbba71093e882ff531b1a /fish/fish.c
parentb7ff02354d6db6b322629ad1d065d56d5ffca3c3 (diff)
downloadlibguestfs-1fb95e65661f19c050b928694f750f2406eff2ac.tar.gz
libguestfs-1fb95e65661f19c050b928694f750f2406eff2ac.tar.xz
libguestfs-1fb95e65661f19c050b928694f750f2406eff2ac.zip
fish: Use minimal permissions when initially creating history file
Diffstat (limited to 'fish/fish.c')
-rw-r--r--fish/fish.c2
1 files changed, 1 insertions, 1 deletions
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;