comparison lib/local.c @ 19:3b2dcdefc7e9

2002-09-15 Brian Masney <masneyb@gftp.org> * lib/gftp.h (struct gftp_transfer) - changed the type of numfiles and numdirs from unsigned long to long. This must be a signed field. This is a bug I introduced a few days ago. * lib/local.c (local_put_file) - remove the + off of the ab mode to fdopen. This is also a bug I introduced a few days ago. * src/gtk/transfer.c (gftp_gtk_calc_kbs) - make sure that the variable difftime isn't a negative number when computing the KB/s * src/gtk/menu-items.c (save_directory_listing) - remove casts to GTK_OBJECT for the str variable * src/gtk/gftp-gtk.c - use GTK_STOCK_* icons in place of left.xpm, right.xpm, up.xpm, down.xpm and stop.xpm in GTK+ 2.0 port * src/gtk/bookmarks.c - show GTK_STOCK_* icons on the popup menu * src/gtk/bookmarks.c, src/gtk/chmod_dialog.c, src/gtk/menu-items.c, src/gtk/misc-gtk.c, src/gtk/options_dialog.c and src/gtk/view_dialog.c - use gtk_dialog_new_with_buttons in GTK+ 2.0 port to create the dialog. Also, associate gFTP icon with this dialog * src/gtk/misc-gtk.c - changed the interface of MakeEditDialog and MakeYesNoDialog. In the GTK+ 2.0 port, I now use stock icons in the dialog buttons.
author masneyb
date Mon, 16 Sep 2002 12:27:50 +0000
parents 83090328581e
children c8ec7877432e
comparison
equal deleted inserted replaced
18:6b2e606554aa 19:3b2dcdefc7e9
292 _("Error: Cannot open local file %s: %s\n"), 292 _("Error: Cannot open local file %s: %s\n"),
293 filename, g_strerror (errno)); 293 filename, g_strerror (errno));
294 return (-2); 294 return (-2);
295 } 295 }
296 296
297 if ((request->datafd = fdopen (sock, "ab+")) == NULL) 297 if ((request->datafd = fdopen (sock, "ab")) == NULL)
298 { 298 {
299 request->logging_function (gftp_logging_error, request->user_data, 299 request->logging_function (gftp_logging_error, request->user_data,
300 _("Cannot fdopen() socket for %s: %s\n"), 300 _("Cannot fdopen() socket for %s: %s\n"),
301 filename, g_strerror (errno)); 301 filename, g_strerror (errno));
302 close (sock); 302 close (sock);