mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-30 06:25:29 -04:00
[syslinux] fallback to embedded on version match if download fails
* Could be useful for current tails user (6.03 based, same as ours) who want to create an UFD without downloading files. * Also improve the buffer overflow check in syslinux/libinstaller/syslxmod.c
This commit is contained in:
parent
1cc7fca4c5
commit
a10a207790
3 changed files with 17 additions and 12 deletions
|
@ -1468,8 +1468,13 @@ static BOOL BootCheck(void)
|
|||
}
|
||||
}
|
||||
if (syslinux_ldlinux_len[i] == 0) {
|
||||
uprintf("Could not download the file - cancelling\n");
|
||||
return FALSE;
|
||||
// If the version matches our embedded one, try to use that as a last ditch effort
|
||||
if (img_report.sl_version == embedded_sl_version[1]) {
|
||||
uprintf("Could not download the file - will try to use embedded %s version instead", img_report.sl_version_str);
|
||||
} else {
|
||||
uprintf("Could not download the file - cancelling\n");
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue