mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Actually ignore comments at the end of lines - broken with the commit
that made ppp *not* treat #s in quoted arguments as comments.
This commit is contained in:
parent
5059d6a601
commit
d81cf7d011
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56655
@ -296,7 +296,7 @@ MakeArgs(char *script, char **pvect, int maxargs, int flags)
|
||||
int nargs;
|
||||
|
||||
nargs = 0;
|
||||
while (*script) {
|
||||
while (*script && *script != '#') {
|
||||
script += strspn(script, " \t");
|
||||
if (*script) {
|
||||
if (nargs >= maxargs - 1)
|
||||
|
Loading…
Reference in New Issue
Block a user