diff lib/rfc959.c @ 858:10e2ce91e26c

2006-11-30 Brian Masney <masneyb@gftp.org> * lib/rfc959.c lib/sshv2.c src/uicommon/gftpui.c - don't abort the entire file transfer if there is a permission denied at some point during the file transfer. Give the user an error at the very end if there were any errors. (closes #328550)
author masneyb
date Fri, 01 Dec 2006 00:57:50 +0000
parents 14858879916f
children 1fae947d4418
line wrap: on
line diff
--- a/lib/rfc959.c	Sun Nov 26 18:31:17 2006 +0000
+++ b/lib/rfc959.c	Fri Dec 01 00:57:50 2006 +0000
@@ -1207,7 +1207,11 @@
   else if (ret != '1')
     {
       rfc959_close_data_connection (request);
-      return (GFTP_ERETRYABLE);
+
+      if (ret == '5')
+        return (GFTP_EFATAL);
+      else
+        return (GFTP_ERETRYABLE);
     }
 
   gftp_lookup_request_option (request, "passive_transfer", &passive_transfer);
@@ -1276,7 +1280,11 @@
   else if (ret != '1')
     {
       rfc959_close_data_connection (request);
-      return (GFTP_ERETRYABLE);
+
+      if (ret == '5')
+        return (GFTP_EFATAL);
+      else
+        return (GFTP_ERETRYABLE);
     }
 
   gftp_lookup_request_option (request, "passive_transfer", &passive_transfer);