Author: imp
Date: Tue Jan 26 06:26:56 2016
New Revision: 294769
URL: https://svnweb.freebsd.org/changeset/base/294769

Log:
  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

Modified:
  head/sys/boot/efi/libefi/libefi.c

Modified: head/sys/boot/efi/libefi/libefi.c
==============================================================================
--- head/sys/boot/efi/libefi/libefi.c   Tue Jan 26 06:26:55 2016        
(r294768)
+++ head/sys/boot/efi/libefi/libefi.c   Tue Jan 26 06:26:56 2016        
(r294769)
@@ -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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to