diff options
author | Matthew Booth <mbooth@redhat.com> | 2012-07-25 14:17:37 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-08-05 22:48:52 +0100 |
commit | 03edaeee83944f951da3d514b64ad481eb434dbb (patch) | |
tree | 1d81ba0cb8efcc251206b8610e9a827f29812ca9 | |
parent | 0fdffa8a3ec54e996c0611a65855550299efd043 (diff) | |
download | libguestfs-03edaeee83944f951da3d514b64ad481eb434dbb.tar.gz libguestfs-03edaeee83944f951da3d514b64ad481eb434dbb.tar.xz libguestfs-03edaeee83944f951da3d514b64ad481eb434dbb.zip |
fish: Use minimal permissions when initially creating history file
(cherry picked from commit 1fb95e65661f19c050b928694f750f2406eff2ac)
-rw-r--r-- | fish/fish.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fish/fish.c b/fish/fish.c index 41f61ca2..1c3d583b 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -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; |