diff options
author | imp <imp@FreeBSD.org> | 2016-01-26 06:26:56 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2016-01-26 06:26:56 +0000 |
commit | f151bb5ce7fee9634f35eeab77c73401e0ec9c4b (patch) | |
tree | 2f665eb11b668c1457f92a46180b0fb4d9878bf1 /sys/boot/efi/libefi | |
parent | 95a6f5f553087f5d7e9bea031a44b4f9d232b914 (diff) | |
download | FreeBSD-src-f151bb5ce7fee9634f35eeab77c73401e0ec9c4b.zip FreeBSD-src-f151bb5ce7fee9634f35eeab77c73401e0ec9c4b.tar.gz |
Allow new lines as white space for arguments that are parsed to allow
boot1 to pass in files with newlines in them. Now that the EFI loader
groks foo=bar on the command line, this can allow a more general setup
than traditional boot loader args will allow.
Differential Revision: https://reviews.freebsd.org/D5038
Diffstat (limited to 'sys/boot/efi/libefi')
-rw-r--r-- | sys/boot/efi/libefi/libefi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/efi/libefi/libefi.c b/sys/boot/efi/libefi/libefi.c index f87b89a..c76bd6c 100644 --- a/sys/boot/efi/libefi/libefi.c +++ b/sys/boot/efi/libefi/libefi.c @@ -44,7 +44,7 @@ static CHAR16 * arg_skipsep(CHAR16 *argp) { - while (*argp == ' ' || *argp == '\t') + while (*argp == ' ' || *argp == '\t' || *argp == '\n') argp++; return (argp); } @@ -53,7 +53,7 @@ static CHAR16 * arg_skipword(CHAR16 *argp) { - while (*argp && *argp != ' ' && *argp != '\t') + while (*argp && *argp != ' ' && *argp != '\t' && *argp != '\n') argp++; return (argp); } |