diff src/gtk/transfer.c @ 274:4610d25d4abb

2003-9-21 Brian Masney <masneyb@gftp.org> * lib/local.c src/gtk/transfer.c src/text/gftp-text.c - if there is a dangling symlink in the current directory, don't bail out. This was causing directory listings to appear truncated. * configure.in - increment version to 2.0.16pre0
author masneyb
date Sun, 21 Sep 2003 16:50:49 +0000
parents 2ad324cf4930
children 3bc63e3dbe12
line wrap: on
line diff
--- a/src/gtk/transfer.c	Sun Sep 21 16:21:37 2003 +0000
+++ b/src/gtk/transfer.c	Sun Sep 21 16:50:49 2003 +0000
@@ -104,8 +104,15 @@
       request->gotbytes = 0; 
       havedotdot = 0; 
       fle = g_malloc0 (sizeof (*fle));
-      while ((got = gftp_get_next_file (request, NULL, fle)) > 0)
+      while ((got = gftp_get_next_file (request, NULL, fle)) > 0 ||
+             got == GFTP_ERETRYABLE)
         { 
+          if (got < 0)
+            {
+              gftp_file_destroy (fle);
+              continue;
+            }
+
           request->gotbytes += got;
           if (strcmp (fle->file, ".") == 0)
             {