Mercurial > gftp.yaz
diff lib/sshv2.c @ 91:8c37d73d3f1f
2003-1-21 Brian Masney <masneyb@gftp.org>
* lib/gftp.h - added server type defines. Added server_type field to
gftp_request
* lib/local.c - use S_ISDIR and S_ISLINK macros
* lib/protocols.c - (gftp_parse_ls*) - use hints from server_type for
parsing directory listing
* lib/rfc959.c - added function rfc959_syst. Call this on startup
* lib/protocols.c lib/rfc959.c lib/sshv2.c - pass request structure
to gftp_parse_ls
* lib/sshv2.c - set server_type to be GFTP_TYPE_UNIX
author | masneyb |
---|---|
date | Tue, 21 Jan 2003 23:46:03 +0000 |
parents | 7ef60ce2bdb2 |
children | 76e2b58a9440 |
line wrap: on
line diff
--- a/lib/sshv2.c Tue Jan 21 05:50:53 2003 +0000 +++ b/lib/sshv2.c Tue Jan 21 23:46:03 2003 +0000 @@ -1010,7 +1010,7 @@ if (longname[longnamelen - 1] == '/') longname[--longnamelen] = '\0'; - if ((ret = gftp_parse_ls (longname, fle)) < 0) + if ((ret = gftp_parse_ls (request, longname, fle)) < 0) { gftp_file_destroy (fle); return (ret); @@ -2011,6 +2011,7 @@ request->use_threads = 1; request->always_connected = 0; request->protocol_data = g_malloc0 (sizeof (sshv2_params)); + request->server_type = GFTP_TYPE_UNIX; gftp_set_config_options (request); params = request->protocol_data;