mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
* grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
open/read/write.
This commit is contained in:
1 parent
69ca587652
commit
25ac643a54
11 files changed
+67
-42
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user