diff lib/protocols.c @ 218:de6a2e8e51cb

2003-7-9 Brian Masney <masneyb@gftp.org> * lib/config_file.c (gftp_write_config_file) - fix for writing out list items to the config file. * lib/config_file.c lib/gftp.h - added gftp_free_proxy_hosts() and gftp_copy_proxy_hosts() * lib/protocols.c (gftp_connect_server) - look up dont_use_proxy instead of ext * lib/protocols.c lib/sshv2.c src/gtk/dnd.c src/gtk/menu-items.c - when calling g_build_path(), set the directory separator to / instead of G_DIR_SEPARATOR_S * src/gtk/gftp-gtk.c (toolbar_hostedit) - fixed crash * src/gtk/gftp-gtk.h - removed gotbytes from gftp_window_data structure * src/gtk/options_dialog.c - show proxy hosts in options dialog * docs/sample.gftp/gftprc - new default config file
author masneyb
date Wed, 09 Jul 2003 23:25:56 +0000
parents 3d6e024dbf31
children 6de9a8280aa4
line wrap: on
line diff
--- a/lib/protocols.c	Tue Jul 08 19:44:12 2003 +0000
+++ b/lib/protocols.c	Wed Jul 09 23:25:56 2003 +0000
@@ -893,7 +893,7 @@
   char serv[8];
 #endif
 
-  gftp_lookup_global_option ("ext", &proxy_hosts);
+  gftp_lookup_global_option ("dont_use_proxy", &proxy_hosts);
 
   if (proxy_hostname == NULL || *proxy_hostname == '\0')
     return (0);
@@ -1540,11 +1540,10 @@
         fle->startsize = *newsize;
 
       if (transfer->toreq)
-        fle->destfile = g_build_path (G_DIR_SEPARATOR_S, 
-                                      transfer->toreq->directory, fle->file, 
-                                      NULL);
-
-      newname = g_build_path (G_DIR_SEPARATOR_S, transfer->fromreq->directory,
+        fle->destfile = g_build_path ("/", transfer->toreq->directory, 
+                                      fle->file, NULL);
+
+      newname = g_build_path ("/", transfer->fromreq->directory,
 			     fle->file, NULL);
 
       g_free (fle->file);