Explicitly reject target/source filenames with newlines in them.
This avoids an ugly assertion failure when we try to log a message containing an inner newline.
This commit is contained in:
parent
e5a27f04e8
commit
83bc49512f
1 changed files with 5 additions and 0 deletions
|
|
@ -478,6 +478,11 @@ def run(targets, shouldbuildfunc):
|
|||
else:
|
||||
selflock = myfile = me = None
|
||||
|
||||
for t in targets:
|
||||
if '\n' in t:
|
||||
err('%r: filenames containing newlines are not allowed.\n' % t)
|
||||
return 204
|
||||
|
||||
def cheat():
|
||||
if not selflock:
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue