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
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
..
arch [misc] Fix source files erroneously marked as executable 2009-06-02 11:26:09 +01:00
bin Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
config [serial] Define constants for serial port I/O addresses 2009-05-21 10:04:12 +01:00
core [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
crypto [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
doc [PXEXT] Update documentation 2008-03-26 15:14:55 -07:00
drivers [misc] Fix source files erroneously marked as executable 2009-06-02 11:26:09 +01:00
hci [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
image [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
include [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
interface [settings] Allow for arbitrarily-named settings 2009-05-26 11:05:58 +01:00
libgcc [build] Enable building with the Intel C compiler (icc) 2009-03-26 07:27:19 +00:00
net [ethernet] Add MII link status functions from Linux 2009-05-26 11:37:46 +01:00
proto [slam] Add Scalable Local Area Multicast (SLAM) protocol support 2008-06-10 00:04:19 +01:00
tests [i386] Add explicit flags and type on all .section declarations 2009-02-15 10:59:53 +00:00
usr [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
util [legal] Add licence.pl and %.licence make target 2009-05-18 08:29:24 +01:00
.gitignore [util] config-local.h to avoid accidental commits 2008-06-05 00:45:33 +01:00
doxygen.cfg Remove uIP; we haven't used it for quite some time now. 2007-01-10 02:52:58 +00:00
Makefile [legal] Add licence.pl and %.licence make target 2009-05-18 08:29:24 +01:00
Makefile.housekeeping [build] Add -fno-dwarf2-cfi-asm to CFLAGS if supported by the gcc in use 2009-05-27 02:30:46 +01:00