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/include
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
..
gpxe [spi] Add address-length autodetection to the SPI bit-bashing code 2009-05-28 19:32:03 +01:00
readline [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
sys Add POSIX prototypes for time functions, to allow external code to build 2007-01-19 03:09:22 +00:00
usr [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
.gitignore Rename .cvsignore files to .gitignore 2007-06-09 22:57:00 +01:00
alloca.h alloca() can be useful in some (limited) circumstances. 2007-01-11 23:19:31 +00:00
assert.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
big_bswap.h Added the "swap in place" macros 2006-09-11 17:54:19 +00:00
bootp.h Initial revision 2005-03-08 18:53:11 +00:00
btext.h Merged mcb30-realmode-redesign back to HEAD 2005-04-08 15:01:17 +00:00
byteswap.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
cmdline.h Merge of Fredrik Hultin command_line 2006-08-09 02:30:35 +00:00
cmdlinelib.h Merge of Fredrik Hultin command_line 2006-08-09 02:30:35 +00:00
cmdlist.h Added quick and dirty commands for testing the new NVO code. 2006-12-04 23:40:35 +00:00
coff.h Initial revision 2005-03-08 18:53:11 +00:00
compiler.h [legal] Add mechanism for explicit per-file licence declarations 2009-05-18 08:26:08 +01:00
console.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
cpu.h Initial revision 2005-03-08 18:53:11 +00:00
ctype.h [script] Allow for DOS-style line endings in scripts 2009-06-03 10:13:29 +01:00
curses.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
elf.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
endian.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
errno.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
etherboot.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
fs.h Initial revision 2005-03-08 18:53:11 +00:00
getopt.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
i82365.h Initial revision 2005-03-08 18:53:11 +00:00
igmp.h Moved include/in.h to include/gpxe/in.h, so that it can be included by 2006-03-23 16:45:01 +00:00
libgen.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
little_bswap.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
mii.h [misc] Fix source files erroneously marked as executable 2009-06-02 11:26:09 +01:00
nfs.h Initial revision 2005-03-08 18:53:11 +00:00
nic.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
nmb.h A working DNS resolver (not yet tied in to anything) 2007-01-15 17:31:35 +00:00
old_tcp.h Moved old tcp.h to old_tcp.h, to avoid name clash with new (uIP-based) 2006-03-23 20:34:08 +00:00
pc_kbd.h Initial revision 2005-03-08 18:53:11 +00:00
pcmcia-opts.h Initial revision 2005-03-08 18:53:11 +00:00
pcmcia.h Dead code removal. 2007-07-14 15:42:26 +01:00
stdarg.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
stddef.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
stdint.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
stdio.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
stdlib.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
string.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
strings.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00
sys_info.h Initial revision 2005-03-08 18:53:11 +00:00
time.h Add POSIX prototypes for time functions, to allow external code to build 2007-01-19 03:09:22 +00:00
unistd.h [legal] Add a selection of FILE_LICENCE declarations 2009-05-18 08:33:25 +01:00