mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
Strip carriage returns from unpwdb input files
This commit is contained in:
@@ -111,8 +111,8 @@ local filltable = function(filename, table)
|
|||||||
|
|
||||||
for l in file:lines() do
|
for l in file:lines() do
|
||||||
-- Comments takes up a whole line
|
-- Comments takes up a whole line
|
||||||
if not l:match("#!comment:") then
|
if not l:match("^#!comment:") then
|
||||||
table[#table + 1] = l
|
table[#table + 1] = l:gsub("[\r\n]+$", "")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user