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

@ -90,7 +90,7 @@ grub_util_fd_open (const char *os_dev, int flags)
flags |= O_BINARY;
#endif
ret = open (os_dev, flags, S_IRUSR | S_IWUSR);
ret = open (os_dev, flags, S_IROTH | S_IRGRP | S_IRUSR | S_IWUSR);
if (ret >= 0)
configure_device_driver (fd);
return ret;