From 31d5f7ee8fbdb62ef275c3a0a38c00eae7613ff8 Mon Sep 17 00:00:00 2001 From: oliver Date: Sun, 27 Jul 2003 01:23:57 +0000 Subject: until it's fixed by the author, add a patch to fix transfering a whole directory (gftp adds wrongly a trailing / to each file and directory which ends in a 550 error) --- ftp/gftp/files/patch-src::gtk::transfer.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ftp/gftp/files/patch-src::gtk::transfer.c diff --git a/ftp/gftp/files/patch-src::gtk::transfer.c b/ftp/gftp/files/patch-src::gtk::transfer.c new file mode 100644 index 0000000..52dca99 --- /dev/null +++ b/ftp/gftp/files/patch-src::gtk::transfer.c @@ -0,0 +1,16 @@ +--- src/gtk/transfer.c.orig Sun Jul 27 03:17:01 2003 ++++ src/gtk/transfer.c Sun Jul 27 03:18:23 2003 +@@ -570,6 +570,13 @@ + transfer->current_file_number++; + g_static_mutex_unlock (&transfer->structmutex); + ++ if (*(curfle->file+strlen(curfle->file)-1)=='/' ) { ++ *(curfle->file+strlen(curfle->file)-1)=(char)0; ++ } ++ if (*(curfle->destfile+strlen(curfle->destfile)-1)=='/' ) { ++ *(curfle->destfile+strlen(curfle->destfile)-1)=(char)0; ++ } ++ + if (curfle->transfer_action == GFTP_TRANS_ACTION_SKIP) + { + g_static_mutex_lock (&transfer->structmutex); -- cgit v1.1