+2003-10-15 Philip Stadermann <philip.stadermann@credativ.de>
+
+ * ftp.c (ftp_retrieve_glob): Correctly loop through the list whose
+ elements might have been deleted.
+
2003-10-13 Hrvoje Niksic <hniksic@xemacs.org>
* html-url.c (tag_handle_meta): Set the Refresh link to expect
static uerr_t
ftp_retrieve_glob (struct url *u, ccon *con, int action)
{
- struct fileinfo *f, *orig, *start;
+ struct fileinfo *f, *start;
uerr_t res;
con->cmd |= LEAVE_PENDING;
- res = ftp_get_listing (u, con, &orig);
+ res = ftp_get_listing (u, con, &start);
if (res != RETROK)
return res;
- start = orig;
/* First: weed out that do not conform the global rules given in
opt.accepts and opt.rejects. */
if (opt.accepts || opt.rejects)
{
- f = orig;
+ f = start;
while (f)
{
if (f->type != FT_DIRECTORY && !acceptable (f->name))
}
}
/* Remove all files with possible harmful names */
- f = orig;
+ f = start;
while (f)
{
if (has_insecure_name_p (f->name))