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? */ _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"