diff options
-rw-r--r-- | src/luarocks/tools/patch.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/tools/patch.lua b/src/luarocks/tools/patch.lua index db1a9de5..04154219 100644 --- a/src/luarocks/tools/patch.lua +++ b/src/luarocks/tools/patch.lua | |||
@@ -295,7 +295,7 @@ function read_patch(filename, data) | |||
295 | -- Accept a space as a terminator, like GNU patch does. | 295 | -- Accept a space as a terminator, like GNU patch does. |
296 | -- Breaks patches containing filenames with spaces... | 296 | -- Breaks patches containing filenames with spaces... |
297 | -- FIXME Figure out what does GNU patch do in those cases. | 297 | -- FIXME Figure out what does GNU patch do in those cases. |
298 | local match = line:match("^%-%-%- ([^\t ]+)") | 298 | local match = line:match("^%-%-%- ([^ \t\r\n]+)") |
299 | if not match then | 299 | if not match then |
300 | all_ok = false | 300 | all_ok = false |
301 | warning(format("skipping invalid filename at line %d", lineno+1)) | 301 | warning(format("skipping invalid filename at line %d", lineno+1)) |