mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-25 08:39:28 +00:00
fix a stupid bug in write_to_partition.
This commit is contained in:
1 parent
5b956a8ac8
commit
324e93a919
3 files changed
+7
-2
No files matched your search
+1
-1
@@ -550,7 +550,7 @@ write_to_partition (char **map, int drive, int partition,
|
||||
sprintf (dev, "%s%d", map[drive], ((partition >> 16) & 0xFF) + 1);
|
||||
|
||||
/* Open the partition. */
|
||||
fd = open (dev, O_RDONLY);
|
||||
fd = open (dev, O_RDWR);
|
||||
if (fd < 0)
|
||||
{
|
||||
errnum = ERR_NO_PART;
|
||||
|
||||
Reference in new issue
Block a user