mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
fish: Use minimal permissions when initially creating history file
(cherry picked from commit 1fb95e6566)
This commit is contained in:
committed by
Richard W.M. Jones
parent
0fdffa8a3e
commit
03edaeee83
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user