svn commit: r353987 - stable/12/stand/common
Kyle Evans
kevans at FreeBSD.org
Thu Oct 24 03:09:31 UTC 2019
Author: kevans
Date: Thu Oct 24 03:09:31 2019
New Revision: 353987
URL: https://svnweb.freebsd.org/changeset/base/353987
Log:
MFC r348499: Fix comment parsing in interp_simple.c
loader.rc has comment lines without a trailing space, which get
interpreted as commands. Avoid this by only matching against the
backslash character.
Modified:
stable/12/stand/common/interp_simple.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/stand/common/interp_simple.c
==============================================================================
--- stable/12/stand/common/interp_simple.c Thu Oct 24 03:08:11 2019 (r353986)
+++ stable/12/stand/common/interp_simple.c Thu Oct 24 03:09:31 2019 (r353987)
@@ -114,7 +114,7 @@ interp_include(const char *filename)
line++;
flags = 0;
/* Discard comments */
- if (strncmp(input+strspn(input, " "), "\\ ", 2) == 0)
+ if (strncmp(input+strspn(input, " "), "\\", 1) == 0)
continue;
cp = input;
/* Echo? */
More information about the svn-src-all
mailing list