wok-current annotate grub4dos/stuff/dev_partition.diff @ rev 16834
Add oxygen-gtk, oxygen-icons.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jul 12 16:57:27 2014 +0300 (2014-07-12) |
parents | |
children |
rev | line source |
---|---|
pascal@7806 | 1 Partition can be ${dev}$num or ${dev}p$num |
pascal@7806 | 2 --- grub-0.97/lib/device.c |
pascal@7806 | 3 +++ grub-0.97/lib/device.c |
pascal@7806 | 4 @@ -867,6 +867,13 @@ |
pascal@7806 | 5 fd = open (dev, O_RDWR); |
pascal@7806 | 6 if (fd < 0) |
pascal@7806 | 7 { |
pascal@7806 | 8 + strcpy (dev, map[drive]); |
pascal@7806 | 9 + sprintf (dev + strlen(dev), "p%d", ((partition >> 16) & 0xFF) + 1); |
pascal@7806 | 10 + fd = open (dev, O_RDWR); |
pascal@7806 | 11 + } |
pascal@7806 | 12 + |
pascal@7806 | 13 + if (fd < 0) |
pascal@7806 | 14 + { |
pascal@7806 | 15 errnum = ERR_NO_PART; |
pascal@7806 | 16 return 0; |
pascal@7806 | 17 } |