changeset 261:dbf13a10be13

2003-8-20 Brian Masney <masneyb@gftp.org> * lib/gftp.h lib/protocols.c - largefile fixes * configure.in debian/changelog - updated version * cvsclean - clean up after ourselves a little more * ChangeLog-old README TODO docs/website/index.html.in - updated
author masneyb
date Thu, 21 Aug 2003 20:24:08 +0000
parents 71d0098c3735
children c1630546762b
files ChangeLog ChangeLog-old README TODO configure.in cvsclean debian/changelog docs/website/index.html.in lib/gftp.h lib/protocols.c
diffstat 10 files changed, 94 insertions(+), 120 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Aug 18 00:57:57 2003 +0000
+++ b/ChangeLog	Thu Aug 21 20:24:08 2003 +0000
@@ -1,3 +1,12 @@
+2003-8-20 Brian Masney <masneyb@gftp.org>
+	* lib/gftp.h lib/protocols.c - largefile fixes
+
+	* configure.in debian/changelog - updated version
+
+	* cvsclean - clean up after ourselves a little more
+	
+	* ChangeLog-old README TODO docs/website/index.html.in - updated
+
 2003-8-17 Brian Masney <masneyb@gftp.org>
 	* lib/protocols.c (parse_time) - when parsing timestamps that are not in
 	the current locale, skip over the proper amount of tokens. This is so
@@ -1481,7 +1490,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.135 2003/08/18 00:57:56 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.136 2003/08/21 20:24:05 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/ChangeLog-old	Mon Aug 18 00:57:57 2003 +0000
+++ b/ChangeLog-old	Thu Aug 21 20:24:08 2003 +0000
@@ -1,3 +1,30 @@
+Changes from 2.0.15rc2 to 2.0.15
+
+* FTP: Fixes for selecting ASCII/Binary transfers
+* Fixed crash when deleting files in the GTK+ port
+* Fixed parsing directory listings that have timestamps that are not in the 
+  current locale.
+* More largefile support fixes.
+* Updated translations (cs, pl, sr, sr@Latn, sv)
+
+Changes from 2.0.15rc1 to 2.0.15rc2
+
+* Largefile (>2.1GB) fixes. 
+* When resuming files, look up the right option name. gFTP would bail out
+  whenever it couldn't look up the right option.
+* Fixes to the permissions of files when they are first transfered. New files 
+  are created with the mode 0644 & ~umask.
+* Change to the proper local directory when one was enabled with a bookmark.
+* Fixed crash that would occur in the options dialog when you hit Apply, then 
+  OK.
+* Fixed possible division by 0 when transfering a file.
+* Fixed double free of a gftp_file structure member (utf8_file). This was not
+  present in 2.0.14.
+* FreeBSD PTY and password prompt fixes.
+* Detect write errors properly.
+* Added --info argument to the command line. This will give some information
+  about how gFTP was compiled.
+
 Changes from 2.0.14 to 2.0.15rc1
 
 * I18N improvements in GTK+ 2.0 port. If the remote server is not returning 
--- a/README	Mon Aug 18 00:57:57 2003 +0000
+++ b/README	Thu Aug 21 20:24:08 2003 +0000
@@ -6,27 +6,17 @@
 * GTK+ 1.2.3 or higher. GTK+/Glib is included with most systems now. If you 
   don't have it installed, you may want to check to see if your vendor has a 
   package available. If not, you can download the latest version of GTK+ and 
-  Glib from ftp://ftp.gtk.org/pub/gtk. gFTP will work with version 1.2 or 2.0 
-  of GTK+, I would suggest using GTK+ 2.0, but installing GTK+ 2.0 does 
-  require installing more packages onto your system.
-* pthread libraries. If you have a libc6 based machine (Debian >= 2.x, Red Hat 
-  >= 5.x), you should already have the pthread libraries installed. If you 
-  have a libc5 based machine (Slackware < 7.0), you will need to install 
-  LinuxThreads from my website. Also, if you don't have LinuxThreads installed,
-  you most likely don't have thread safe X libraries. You must have thread 
-  safe X libraries or gFTP will constantly crash. You can download some thread 
-  safe X libraries off my website. If you are on a platform other than Linux, 
-  you may want to take a look at the FSU Pthreads library at 
-  http://www.informatik.hu-berlin.de/~mueller/pthreads.
-* I would recommend running X in at least 800x600 mode.
-* pkgconfig 0.9.0 or newer.  pkgconfig is available at
-  http://www.freedesktop.org/software/pkgconfig.
+  Glib from ftp://ftp.gtk.org/pub/gtk. gFTP will work with either version 1.2 
+  or 2.0 of GTK+, but I would recommend using GTK+ 2.0.
+* pthread libraries. Most systems already satisfy this requirement. If you are
+  on a platform other than Linux, you may want to take a look at the FSU 
+  Pthreads library at http://www.informatik.hu-berlin.de/~mueller/pthreads.
 
 [Installation Instructions]
 
-* If you do not want to compile this program yourself, you can check my
-  webpage. I have DEBs for Debian and RPMs for RedHat available. If you're 
-  looking for Solaris binaries, check out http://www.sunfreeware.com
+* If you do not want to compile gFTP yourself, you can check my webpage. I have
+  DEBs for Debian and RPMs for RedHat available. If you're looking for Solaris
+  binaries, check out http://www.sunfreeware.com.
 * If you are compiling gFTP yourself, extract the files from the distribution 
   with tar -zxvf gftp-<version>.tar.gz
 * Go to the gftp-<version> directory and type 
@@ -38,39 +28,27 @@
   will compile a binary for your machine. By default, when you run
   configure, it will install gFTP with the prefix /usr/local, so the gFTP
   binary will be /usr/local/bin/gftp. You can change this by typing 
-  configure --prefix=/usr, and it will then install the gFTP binary in 
+  configure --prefix=/usr, and it will then install the gFTP binary to
   /usr/bin/gftp.
 * If the compile suceeds without any errors, you can type make install to 
   install the binary. This will also copy some necessary
   files to <install prefix>/share/gftp. If you do not have root on your 
   machine to install these files, copy the contents of the docs/sample.gftp/ 
   directory to ~/.gftp.
-* [OPTIONAL] If you compiled gFTP on a platform other than Linux, could you
-  please send me your OS name/version and I will post on my website
-  the operating systems gFTP has been successfully compiled on.
 * You may want to glance at the USERS-GUIDE file that comes with this
   distribution. It contains a little bit of information about how to use it.
 
 [Frequently Asked Questions]
 
 Here is a list of frequently asked questions about gFTP. You can always find
-the latest version of this FAQ off my website.
-
-*******************************************************************************
-
-Q: I'm having problems with installing the RPMs off of your website. 
-
-A: If the RPM installs fine, but when you run gFTP, if you get an error about the symbol GCC_3.0 not found, then you need to recompile the RPM. Or if you try to install the RPM and you get an error about unresolved dependency libreadline.so.1 and you have the readline RPM installed, you'll also have to get a different gFTP RPM. The RPMs on my website I built on a Debian GNU/Linux i386 box with gcc 3.0.3.
-
-I would first suggest checking your distributions development tree (RedHat Rawhide or Mandrake Cooker for example), they probably have a RPM of the latest gFTP there. If not, download the SRC RPM and type rpm -i gftp-version-1.src.rpm. It will build a RPM and put it in /usr/src/redhat/RPMS/arch or /usr/src/rpm/RPMS/arch (arch is i386, sparc, axp, etc...)
-
+the latest version of this FAQ on my website.
 
 *******************************************************************************
 
 Q: What systems is gFTP known to run on?
 
 A: I develop gFTP on a Debian GNU/Linux machine. Here is a list of other 
-   platforms I have received successful compile reports on: 
+   platforms I have received successful compile reports: 
 
      * FreeBSD/NetBSD/OpenBSD/BSDI
      * Solaris 
@@ -78,10 +56,10 @@
      * Digital UNIX
      * HP/UX 11
 
-   If you got gFTP to compile on a platform not listed here, please email me 
+   If gFTP compiles and runs on a platform not listed here, please email me 
    about it and I'll add it to this list. If you are having problems compiling 
-   gtk+ or gFTP on another platform, try using GNU make instead of your vendor 
-   supplied make. Most of the vendor supplied makes are brain-dead. 
+   GTK+ or gFTP on another platform, try using GNU make instead of your vendor 
+   supplied make.
 
 *******************************************************************************
 
@@ -116,20 +94,11 @@
 
 *******************************************************************************
 
-Q: What is the difference between the SSH and SSH2 protocols?
-
-A: The SSH protocol uses sftp >= 0.7 from http://www.xbill.org/sftp. SSH2 uses
-   the native file transfers found in the commercial SSH2 and in later versions
-   of OpenSSH. The SSH2 protocol uses the sftp-server executable on the remote 
-   host and the SSH protocol uses the sftpserv executable.
-
-*******************************************************************************
-
 Q: How do I force running the text or gtk+ version of gFTP?
 
 A: To run the text port, you can type gftp-text or to run the gtk+ port, you
-   can run the gftp-gtk. The gftp command is just a shell script that sees
-   if your DISPLAY variable is set, and if so it'll run the appropriate version
+   can run the gftp-gtk. The gftp command is just a shell script that checks
+   if your DISPLAY variable is set, and if so it'll run the appropriate version.
 
 *******************************************************************************
 
@@ -140,9 +109,9 @@
 
    gftp-text -d ftp://ftp.somesite.com/someplace
 
-   If someplace is a directory, it'll automatically download all its subdirs
-   as well. If you want to transfer a file through ssh instead of ftp, just
-   change the ftp:// to ssh://
+   If someplace is a directory, it'll automatically download all of its 
+   subdirectories as well. If you want to transfer a file through ssh instead 
+   of ftp, just change the ftp:// to ssh://.
 
 *******************************************************************************
 
@@ -151,7 +120,7 @@
 
 A: No you don't. If you leave the port blank, it'll default to the default port
    for the protocol you selected (port 21 for FTP). If you leave the username
-   blank, it will default to logging in as anonymous
+   blank, it will default to logging in as anonymous.
 
 *******************************************************************************
 
@@ -163,17 +132,17 @@
 
 *******************************************************************************
 
-Q: When gFTP tries to get the remote directory listing, it sends LIST -L, but
-   the remote server sends an error back
+Q: When gFTP tries to get the remote directory listing, the remote server 
+   complains about either the -a or -L argument to LIST.
 
-A: Go to FTP->Options and turn off resolve remote symlinks. gFTP will then send
-   LIST instead of LIST -L. You should only have to do this if you are
-   connecting to Novell servers.
+A: If the server is complaining about the -L option, go under FTP->Options->FTP
+   and disable resolve remote symlinks. If it is complaining about the -a
+   option, go to FTP->Options->General and disable show hidden files.
 
 *******************************************************************************
 
-Q: When gFTP tries to get the remote directory listing, I get an error that
-   says: Cannot create a data connection: Connection refused
+Q: When gFTP tries to get the remote directory listing, I receive the error:
+   Cannot create a data connection: Connection refused
 
 A: Go under FTP->Options and turn off passive file transfers. Instead of 
    sending the PASV command to open up the data connection on the server side,
@@ -183,64 +152,32 @@
 *******************************************************************************
 
 Q: When I try to compile gFTP, I get some errors. One of them is undefined
-   symbol LC_ALL
+   symbol LC_ALL.
 
-A: Try typing make distclean ; configure --with-included-gettext and it
-   should compile fine then. 
+A: Try running make distclean ; configure --with-included-gettext. You could 
+   alternatively pass --disable-nls to configure, and internationalization
+   support will not be compiled in.
 
 *******************************************************************************
 
 Q: How do I report bugs in gFTP?
 
-A: If you find ANY bugs in gFTP, please email them to me at
-   masneyb@gftp.org. If there is a newer version of gFTP available,
-   please try it first before you send me a bug report. If the problem
-   exists in that version, feel free to email me about it. When sending in 
-   bug reports, please try to be as descriptive as possible. Send me what 
-   OS/version you are running, what compiler you are compiling with, and any 
-   other important information. If you get gFTP to crash, it would be very 
-   helpful if you could send me a backtrace. If you do not know how to do a 
-   backtrace, download the source code from my website. Edit the Makefile,
-   and make sure that -g appear in the CFLAGS variable. Then recompile gFTP,
-   but do NOT do a make install because it will install a stripped binary in 
-   $PREFIX/bin. Then type gdb ./gftp. Once you have a (gdb) prompt, type r.
-   Once you get gFTP to crash, go back to that terminal window, and type bt,
-   and send me that output in an email message along with a short description
-   of how it happened.
-
-*******************************************************************************
-
-Q: I downloaded a binary off the internet and everytime I run gFTP I get an
-   error saying: undefined symbol :__register_frame_info
-
-A: ObiTuarY <obituary@freshmeat.net> says:
+A: If you find ANY bugs in gFTP, please check to make sure that you are using
+   the latest version of gFTP. If you are, please submit all bug reports to
+   GNOME's Bugzilla. When sending in bug reports, please try to be as 
+   descriptive as possible. Send me what OS/version you are running, what 
+   compiler you are compiling with, and any other important information. If
+   you get gFTP to crash, it would be very helpful if you could send me a 
+   backtrace. If you do not know how to do a backtrace, download the source
+   code from my website. Edit the Makefile, and make sure that -g appear in 
+   the CFLAGS variable. Then recompile gFTP, but do NOT do a make install 
+   because it will install a stripped binary in $PREFIX/bin. Then type 
+   gdb ./gftp. Once you have a (gdb) prompt, type r. When gFTP crashes, 
+   go back to that terminal window, and type bt, and put that output in the
+   bug that you file with bugzilla.
 
-   "This happens when you compile a library with egcs. The library then has 
-   the __register_frame_info symbol. If you link a program to it, it will 
-   require this symbol. Now if you have the exact same library compiled with
-   gcc 2.7.2.3 it won't have this symbol. The thing about glibc 2.1 under Red 
-   Hat 6 is it was compiled with egcs and glibc 2.0.x under Red Hat 5.x was 
-   compiled with gcc 2.7.2.3, therefore it's not an incompatibility between 
-   glibc 2.0.x and 2.1.x. What some people do for that is they get the .o file 
-   of egcs with __register_frame_info in it and link into the program so it's 
-   always there, that way it works with libs compiled with egcs or gcc 2.7.2.3.
-   (in /usr/lib/gcc-lib/i386-*-linux/egcs-*/ )"
-
-   Another alternative, is to recompile gFTP on your machine, or you can
-   download some RPMs off my website that were compiled against Red Hat 5.2.
-
-*******************************************************************************
-
-Q: I upgraded to a newer version of gFTP and now I am getting some warnings
-   about some config file lines not having enough arguments, and it cannot find
-   html.xpm. 
-
-A: This is from upgrading from a very old version of gFTP to a newer version. 
-   I removed some icons from the distribution (0.20 to 0.21). Edit your 
-   ~/.gftp/gftprc file. At the bottom of the file, there are some ext= lines. 
-   Some of them have html.xpm, rpm.xpm and pdf.xpm. Remove these lines and gFTP 
-   will startup fine. Don't worry about fixing he warnings...they will go away 
-   themselves.
+   I also have a gftp-users mailinglist setup. I have a link to the archives
+   on my main webpage.
 
 *******************************************************************************
 
--- a/TODO	Mon Aug 18 00:57:57 2003 +0000
+++ b/TODO	Thu Aug 21 20:24:08 2003 +0000
@@ -34,7 +34,8 @@
 * Add support for SRP protocol (http://srp.stanford.edu/srp)
 * Add support for DAV protocol
 * Add support for rsync protocol
-* Add support for gss-ftp protocol (and ftp-ssl)
+* Add support for ftp-ssl. The URL ftp://ftp.runestig.com/pub/ftp-tls has a FTP
+  server that supports SSL.
 
 Brian Masney <masneyb@gftp.org>
 
--- a/configure.in	Mon Aug 18 00:57:57 2003 +0000
+++ b/configure.in	Thu Aug 21 20:24:08 2003 +0000
@@ -3,7 +3,7 @@
 AC_INIT(lib/gftp.h)
 
 AM_CONFIG_HEADER(config.h)
-AM_INIT_AUTOMAKE(gftp,2.0.15rc2)
+AM_INIT_AUTOMAKE(gftp,2.0.15)
 
 AC_ARG_ENABLE(gtk20, 
               [  --disable-gtk20	  Don't look for GTK+ 2.0 libraries], 
--- a/cvsclean	Mon Aug 18 00:57:57 2003 +0000
+++ b/cvsclean	Thu Aug 21 20:24:08 2003 +0000
@@ -7,5 +7,5 @@
 find . -name ".#*" -exec rm -f {} \;
 rm -rf intl
 rm -rf autom4te.cache
-rm -f po/Makefile.in.in po/*.gmo po/Makevars.template po/Rules-quot po/boldquot.sed po/en@boldquot.header po/en@quot.header po/insert-header.sin po/quot.sed po/remove-potcdate.sin config.log config.cache config.status config.h gftp.spec stamp-h stamp-h.in ABOUT-NLS INSTALL config.guess config.rpath config.status config.sub configure install-sh missing mkinstalldirs
+rm -f po/Makefile.in.in po/*.gmo po/Makevars.template po/Rules-quot po/boldquot.sed po/en@boldquot.header po/en@quot.header po/insert-header.sin po/quot.sed po/remove-potcdate.sin config.log config.cache config.status config.h gftp.spec stamp-h stamp-h.in ABOUT-NLS INSTALL config.guess config.rpath config.status config.sub configure install-sh missing mkinstalldirs build-stamp
 
--- a/debian/changelog	Mon Aug 18 00:57:57 2003 +0000
+++ b/debian/changelog	Thu Aug 21 20:24:08 2003 +0000
@@ -1,8 +1,8 @@
-gftp (2.0.15rc2-1) unstable; urgency=low
+gftp (2.0.15-1) unstable; urgency=low
 
   * New release. See CHANGELOG for details on changes in this release
 
- -- Brian Masney <masneyb@gftp.org>  Thu, 7 Aug 2003 22:37:00 -0400
+ -- Brian Masney <masneyb@gftp.org>  Wed, 20 Aug 2003 19:41:35 -0400
 
 gftp (2.0.14-1.1) unstable; urgency=low
 
--- a/docs/website/index.html.in	Mon Aug 18 00:57:57 2003 +0000
+++ b/docs/website/index.html.in	Thu Aug 21 20:24:08 2003 +0000
@@ -50,7 +50,7 @@
 <LI>Allows for passive and non-passive file transfers
 <LI>Supports UNIX, EPLF, Novell, MacOS, and NT (DOS) style directory listings
 <LI>Full graphical configuration
-<LI>Fully Internationalized. I currently have a Bulgarian (bg), Chinese (zh_TW, zh_CN), Czech (cs), Danish (da), Dutch (nl), Finnish (fi), French (fr), German (de), Hungarian (hu), Italian (it), Korean (ko), Japanese (ja), Norwegian (no), Polish (pl), Portuguese (pt_BR), Romanian (ro), Russian (ru), Spanish (es), Swedish (sv) and Turkish (tr) translations available.
+<LI>Fully Internationalized. I currently have a Amharic (am), Arabic (ar), Belarusian (be), Bulgarian (bg), Catalan (ca), Chinese (zh_TW,zh_CN), Czech (cs), Danish (da), Dutch (nl), Finnish (fi), French (fr), German (de), Hungarian (hu), Italian (it), Korean (ko), Japanese (ja), Macedonian (mk), Malayalam (ml), Malay (ms), Norwegian (no), Polish (pl), Portuguese (pt_BR), Romanian (ro), Russian (ru), Serbian (sr,sr@Latn), Spanish (es), Swedish (sv) and Turkish (tr) translations available.
 </UL>
 
 <H2>Requirements</H2>
@@ -81,6 +81,6 @@
 
 <P>
 Brian Masney <A HREF="mailto:masneyb@gftp.org">masneyb@gftp.org</A><BR>
-Elkview, WV USA
+Morgantown, WV USA
 </P>
 </FONT></BODY></HTML>
--- a/lib/gftp.h	Mon Aug 18 00:57:57 2003 +0000
+++ b/lib/gftp.h	Thu Aug 21 20:24:08 2003 +0000
@@ -790,7 +790,7 @@
 					  off_t startsize,
 					  off_t totalsize );
 
-long gftp_transfer_file 		( gftp_request *fromreq, 
+off_t gftp_transfer_file 		( gftp_request *fromreq, 
 					  const char *fromfile, 
 					  int fromfd,
 					  off_t fromsize, 
--- a/lib/protocols.c	Mon Aug 18 00:57:57 2003 +0000
+++ b/lib/protocols.c	Thu Aug 21 20:24:08 2003 +0000
@@ -201,13 +201,13 @@
 }
 
 
-long
+off_t
 gftp_transfer_file (gftp_request * fromreq, const char *fromfile, 
                     int fromfd, off_t fromsize, 
                     gftp_request * toreq, const char *tofile,
                     int tofd, off_t tosize)
 {
-  long size;
+  off_t size;
   int ret;
 
   g_return_val_if_fail (fromreq != NULL, GFTP_EFATAL);