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/core
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
..
acpi.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
ansiesc.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
asprintf.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
base64.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
basename.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
bitmap.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
bitops.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
btext.c Dead code removal. 2007-07-14 15:42:26 +01:00
config.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
console.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
cpio.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
ctype.c [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
cwuri.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
debug.c [i386] Change [u]int32_t to [unsigned] int, rather than [unsigned] long 2008-11-19 19:15:44 +00:00
device.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
downloader.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
errno.c Split strerror() out from errno.c 2006-12-20 03:49:36 +00:00
exec.c [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
filter.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
gdbserial.c [GDB] Provide functions to manually enter GDB stub. 2008-06-30 19:19:48 +01:00
gdbstub.c [gdb] Allow resynchronisation with gdb 2009-04-15 17:18:14 +01:00
gdbudp.c [nap] Formalise the CPU sleeping API 2008-10-12 23:36:53 +01:00
getkey.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
getopt.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
hw.c Make seek information part of the xfer metadata, rather than an entirely 2008-01-08 16:46:55 +00:00
i82365.c Initial revision 2005-03-08 18:53:11 +00:00
image.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
init.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
interface.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
iobuf.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
job.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
linebuf.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
main.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
malloc.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
misc.c [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
monojob.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
null_nap.c [nap] Formalise the CPU sleeping API 2008-10-12 23:36:53 +01:00
nvo.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
open.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
pc_kbd.c [ioapi] Remove old io.h file and switch all users over to <gpxe/io.h> 2008-10-12 01:06:27 +01:00
pcmcia.c Should be using the generic device probe mechanism, when (if) they 2007-07-03 20:39:30 +01:00
posix_io.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
process.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
proto_eth_slow.c Dead code removal. 2007-07-14 15:42:26 +01:00
random.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
refcnt.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
resolv.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
serial_console.c [Serial] Split serial console from serial driver 2008-06-05 00:45:43 +01:00
serial.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
settings.c [settings] Allow for arbitrarily-named settings 2009-05-26 11:05:58 +01:00
string.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
stringextra.c move strndup back to string.c - used by strdup 2007-08-02 01:47:31 +02:00
timer.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
uri.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
uuid.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
vsprintf.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
xfer.c [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00