nselib/smb: fix find_files function (next_item coroutine)

Patch by Pierre LALET <pierre.lalet@cea.fr>
This commit is contained in:
henri 2015-04-30 17:58:13 +00:00
parent 1704d93482
commit b1d6bcd9be

View file

@ -2813,7 +2813,7 @@ function find_files(smbstate, fname, options)
last_name = fe.fname
coroutine.yield(fe)
until ( ne == 0 )
until ( ne == 0 or pos > response.data:len() )
first = false
until(stop_loop)
return