Mercurial > gftp.yaz
diff lib/misc.c @ 243:b42e7233533a
2003-7-31 Brian Masney <masneyb@gftp.org>
* lib/sshv2.c - fix blocking problem reading the error message from the
remote server when there was an error establishing a connection
* lib/misc.c (copy_fdata) - copy utf8_file variable in gftp_file
structure. (fix double free that was only in development version)
* lib/misc.c - added --info argument to the command line. This will
call gftp_info(), which will print out some information about how
gftp was compiled.
* lib/protocols.c lib/bookmarks.c lib/gftp.h src/gtk/bookmarks.c -
added local_request parameter to gftp_parse_bookmark(). If this is not
NULL, and this bookmark specifies a local directory, it will change to
it.
* configure.in - increment version to 2.0.15rc2
author | masneyb |
---|---|
date | Fri, 01 Aug 2003 01:47:54 +0000 |
parents | a85a097bbb02 |
children | afbbc72b73e2 |
line wrap: on
line diff
--- a/lib/misc.c Wed Jul 30 04:28:12 2003 +0000 +++ b/lib/misc.c Fri Aug 01 01:47:54 2003 +0000 @@ -346,6 +346,64 @@ } +static void +gftp_info (void) +{ + printf ("%s\n", gftp_version); + +#ifdef _LARGEFILE_SOURCE + printf ("#define_LARGEFILE_SOURCE\n"); +#endif + +#ifdef _FILE_OFFSET_BITS + printf ("#define _FILE_OFFSET_BITS %d\n", _FILE_OFFSET_BITS); +#endif + + printf ("sizeof (off_t) = %d\n", sizeof (off_t)); + +#ifdef USE_SSL + printf ("#define USE_SSL\n"); +#endif + +#ifdef HAVE_GETADDRINFO + printf ("#define HAVE_GETADDRINFO\n"); +#endif + +#ifdef HAVE_GAI_STRERROR + printf ("#define HAVE_GAI_STRERROR\n"); +#endif + +#ifdef HAVE_GETDTABLESIZE + printf ("#define HAVE_GETDTABLESIZE\n"); +#endif + +#ifdef G_HAVE_GINT64 + printf ("#define G_HAVE_GINT64\n"); +#endif + +#ifdef HAVE_LIBREADLINE + printf ("#define HAVE_LIBREADLINE\n"); +#endif + +#ifdef ENABLE_NLS + printf ("#define ENABLE_NLS\n"); +#endif + +#ifdef HAVE_GETTEXT + printf ("#define HAVE_GETTEXT\n"); +#endif + + printf ("glib version: %d.%d.%d\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, + GLIB_MICRO_VERSION); + + printf ("PTY implementation: %s\n", gftp_get_pty_impl ()); + +#ifdef USE_SSL + printf ("OpenSSL version: 0x%lx\n", OPENSSL_VERSION_NUMBER); +#endif +} + + int gftp_parse_command_line (int *argc, char ***argv) { @@ -360,6 +418,11 @@ printf ("%s\n", gftp_version); exit (0); } + else if (strcmp (argv[0][1], "--info") == 0) + { + gftp_info (); + exit (0); + } } return (0); } @@ -443,6 +506,9 @@ if (fle->file) newfle->file = g_strdup (fle->file); + if (fle->utf8_file) + newfle->utf8_file = g_strdup (fle->utf8_file); + if (fle->user) newfle->user = g_strdup (fle->user);