mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Allow leading whitespace before '#' when identifying comments.
Submitted by: Dave Bodenstab <imdave@mcs.net>
This commit is contained in:
parent
bb1d272c41
commit
aa2e5be7ae
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
|||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: systems.c,v 1.30 1997/12/17 21:21:42 brian Exp $
|
||||
* $Id: systems.c,v 1.31 1997/12/17 21:22:01 brian Exp $
|
||||
*
|
||||
* TODO:
|
||||
*/
|
||||
|
|
@ -288,6 +288,8 @@ ReadSystem(const char *name, const char *file, int doexec)
|
|||
if (issep(*cp)) {
|
||||
n = strspn(cp, " \t");
|
||||
cp += n;
|
||||
if (*cp == '#')
|
||||
continue;
|
||||
len = strlen(cp);
|
||||
if (!len)
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Reference in a new issue