* 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
|
@ -80,11 +80,11 @@ grub_util_fd_open (const char *os_dev, int flags)
|
|||
flags |= O_BINARY;
|
||||
#endif
|
||||
|
||||
ret = open (os_dev, flags);
|
||||
ret = open (os_dev, flags, S_IRUSR | S_IWUSR);
|
||||
|
||||
/* If we can't have exclusive access, try shared access */
|
||||
if (ret < 0)
|
||||
ret = open (os_dev, flags | O_SHLOCK);
|
||||
ret = open (os_dev, flags | O_SHLOCK, S_IRUSR | S_IWUSR);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue