svn commit: r346359 - head/sys/kern
Warner Losh
imp at FreeBSD.org
Thu Apr 18 22:52:13 UTC 2019
Author: imp
Date: Thu Apr 18 22:52:12 2019
New Revision: 346359
URL: https://svnweb.freebsd.org/changeset/base/346359
Log:
When parsing command line stuff, treat tabs and spaces the same.
When creating complex config files, people like to use tabs to offset
sections. Treat them the same as spaces for delimiters.
Modified:
head/sys/kern/subr_boot.c
Modified: head/sys/kern/subr_boot.c
==============================================================================
--- head/sys/kern/subr_boot.c Thu Apr 18 20:48:54 2019 (r346358)
+++ head/sys/kern/subr_boot.c Thu Apr 18 22:52:12 2019 (r346359)
@@ -199,13 +199,13 @@ boot_parse_cmdline_delim(char *cmdline, const char *de
}
/**
- * @brief Simplified interface for common 'space separated' args
+ * @brief Simplified interface for common 'space or tab separated' args
*/
int
boot_parse_cmdline(char *cmdline)
{
- return (boot_parse_cmdline_delim(cmdline, " \n"));
+ return (boot_parse_cmdline_delim(cmdline, " \t\n"));
}
/**
More information about the svn-src-all
mailing list