mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +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
|
||||
-- Comments takes up a whole line
|
||||
if not l:match("#!comment:") then
|
||||
table[#table + 1] = l
|
||||
if not l:match("^#!comment:") then
|
||||
table[#table + 1] = l:gsub("[\r\n]+$", "")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user