david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/image
Michael Brown 4c5f00f879 [script] Allow for DOS-style line endings in scripts
Windows text editors such as Notepad tend to use CRLF line endings,
which breaks gPXE's signature detection for script images.  Since
scripts are usually very small, they end up falling back to being
detected as valid PXE executable images (since there are no signature
checks for PXE executables).  Executing text files as x86 machine code
tends not to work well.

Fix by allowing for any isspace() character to terminate the "#!gpxe"
signature, and by ensuring that CR characters get stripped during
command line parsing.

Suggested-by: Shao Miller <Shao.Miller@yrdsb.edu.on.ca>
2009-06-03 10:13:29 +01:00
..
efi_image.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
elf.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
embedded.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
script.c [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
segment.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00