Displaying 3 results from an estimated 3 matches for "read_mbr_template".
2014 Jun 24
2
[syslinux:master] isohybrid: Function to write UTF-16LE strings
...t; ---
> utils/isohybrid.c | 28 +++++++++++++++++++---------
> 1 file changed, 19 insertions(+), 9 deletions(-)
>
> diff --git a/utils/isohybrid.c b/utils/isohybrid.c
> index 0011b78..e308a82 100644
> --- a/utils/isohybrid.c
> +++ b/utils/isohybrid.c
> @@ -593,7 +593,7 @@ read_mbr_template(char *path, uint8_t *mbr)
> err(1, "could not open MBR template file `%s'", path);
> clearerr(fp);
> ret = fread(mbr, 1, MBRSIZE, fp);
> - if (ferror(fp))
> + if (ferror(fp) || ret != MBRSIZE)
> err(1, "error while reading MBR t...
2014 Jun 24
0
[syslinux:master] isohybrid: Function to write UTF-16LE strings
On 06/23/2014 09:19 PM, Geert Stappers wrote:
>> diff --git a/utils/isohybrid.c b/utils/isohybrid.c
>> index 0011b78..e308a82 100644
>> --- a/utils/isohybrid.c
>> +++ b/utils/isohybrid.c
>> @@ -593,7 +593,7 @@ read_mbr_template(char *path, uint8_t *mbr)
>> err(1, "could not open MBR template file `%s'", path);
>> clearerr(fp);
>> ret = fread(mbr, 1, MBRSIZE, fp);
>> - if (ferror(fp))
>> + if (ferror(fp) || ret != MBRSIZE)
>> err(1, "e...
2014 Jun 22
16
Announcing a patch series for isohybrid.c
Hi,
following will be 6 patch proposals for isohybrid.c
1: Encode GPT partition names as UTF-16LE
2: Correct blocking factor in APM partition block counts
3: Correct end block address of first GPT partition
4: Write GPT backup to the very end of the image
5: Change all fseek(3) to fseeko(3)
6: Introduce option --mbr and make isohybrid.c compilable standalone
If the form needs adjustments,