Make newly-created files other than grub.cfg world-readable.

This commit is contained in:
Vladimir Serbinenko 2013-12-24 17:36:10 +01:00
parent 569766e49b
commit e5fa26e573
8 changed files with 12 additions and 8 deletions

View file

@ -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);