Nmap Development mailing list archives

Re: [nmap-svn] r28239 - nmap/scripts


From: Patrick Donnelly <batrick () batbytes com>
Date: Fri, 9 Mar 2012 03:09:34 -0500

On Thu, Mar 8, 2012 at 4:21 PM,  <commit-mailer () insecure org> wrote:
  --build a table of both directories to brute force and the corresponding WP plugins' name
  local plugin_count = 0
-  while true do
-    local line = file:read()
-    if not line then
-      break
-    end
-
+  for line in read_data_file(file) do
    if plugins_search and plugin_count >= plugins_search then
      break
    end

Why not just:

for line in file:lines() do

?

-- 
- Patrick Donnelly
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: