Make newly-created files other than grub.cfg world-readable.
This commit is contained in:
parent
569766e49b
commit
e5fa26e573
8 changed files with 12 additions and 8 deletions
|
@ -180,7 +180,7 @@ grub_util_fd_open (const char *dev, int flg)
|
|||
if (dev[0] != '/' || dev[1] != '/' || dev[2] != ':')
|
||||
{
|
||||
ret->type = GRUB_UTIL_FD_FILE;
|
||||
ret->fd = open (dev, flg, S_IRUSR | S_IWUSR);
|
||||
ret->fd = open (dev, flg, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
|
||||
if (ret->fd < 0)
|
||||
{
|
||||
free (ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue