wok-6.x annotate grub/stuff/dev_partition.diff @ rev 4092
Fix: claws-mail-spam_report FSH
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Sep 17 14:32:32 2009 +0200 (2009-09-17) |
parents | |
children | 5af4ef0cffa1 |
rev | line source |
---|---|
pascal@4024 | 1 Partition can be ${dev}$num or ${dev}p$num |
pascal@4024 | 2 --- grub-0.97/lib/device.c |
pascal@4024 | 3 +++ grub-0.97/lib/device.c |
pascal@4024 | 4 @@ -867,6 +867,12 @@ |
pascal@4024 | 5 fd = open (dev, O_RDWR); |
pascal@4024 | 6 if (fd < 0) |
pascal@4024 | 7 { |
pascal@4024 | 8 + strcpy (dev, map[drive]); |
pascal@4024 | 9 + sprintf (dev + strlen(dev), "p%d", ((partition >> 16) & 0xFF) + 1); |
pascal@4024 | 10 + } |
pascal@4024 | 11 + |
pascal@4024 | 12 + if (fd < 0) |
pascal@4024 | 13 + { |
pascal@4024 | 14 errnum = ERR_NO_PART; |
pascal@4024 | 15 return 0; |
pascal@4024 | 16 } |