Bug 700948 - (cov#10813) dynamic overrun possibility in ds_listdb cgi
Coverity shows that a dynamic overrun is possible in the ds_listdb cgi.
This code is confusing the way it is written. We should use a for
loop to iterate through bak_dirs and get rid of the cur_file variable.