mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Correct the arg count after parsing a line with an unescaped # that isn't
preceeded with whitespace. MFC after: 3 weeks
This commit is contained in:
parent
56fe60b131
commit
797c04a7a3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78275
@ -313,10 +313,9 @@ MakeArgs(char *script, char **pvect, int maxargs, int flags)
|
||||
script = findblank(script, flags);
|
||||
if (script == NULL)
|
||||
return -1;
|
||||
else if (!(flags & PARSE_NOHASH) && *script == '#') {
|
||||
else if (!(flags & PARSE_NOHASH) && *script == '#')
|
||||
*script = '\0';
|
||||
nargs--;
|
||||
} else if (*script)
|
||||
else if (*script)
|
||||
*script++ = '\0';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user