mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2025-02-07 13:03:08 +00:00
(construct_command_argv_internal): Notice newline inside '' string when
RESTP is non-null.
This commit is contained in:
parent
3c9e8b266a
commit
dd841ded6f
1 changed files with 6 additions and 0 deletions
6
job.c
6
job.c
|
@ -1244,6 +1244,12 @@ construct_command_argv_internal (line, restp, shell, ifs)
|
||||||
/* Inside a string, just copy any char except a closing quote. */
|
/* Inside a string, just copy any char except a closing quote. */
|
||||||
if (*p == '\'')
|
if (*p == '\'')
|
||||||
instring = 0;
|
instring = 0;
|
||||||
|
else if (*p == '\n' && restp != NULL)
|
||||||
|
{
|
||||||
|
/* End of the command line. */
|
||||||
|
*restp = p;
|
||||||
|
goto end_of_line;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
*ap++ = *p;
|
*ap++ = *p;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue