* grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
open/read/write.
This commit is contained in:
parent
69ca587652
commit
25ac643a54
11 changed files with 67 additions and 42 deletions
|
@ -179,7 +179,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);
|
||||
ret->fd = open (dev, flg, S_IRUSR | S_IWUSR);
|
||||
if (ret->fd < 0)
|
||||
{
|
||||
free (ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue