Mercurial > gftp.yaz
diff lib/rfc959.c @ 478:97fd5eb34be0
2004-6-6 Brian Masney <masneyb@gftp.org>
* acinclude.m4 configure.in - added AC_TYPE_INTPTR_T that will define
intptr_t if it does not exist on the system
* lib/gftp.h lib/protocols.c lib/rfc959.c
src/uicommon/gftpuicallbacks.c - added specify site argument to
rfc959_site(). If this is set, then SITE will be prepended to the
command
author | masneyb |
---|---|
date | Sun, 06 Jun 2004 15:12:35 +0000 |
parents | 39d9cf1bf0df |
children | 7334a74db6f6 |
line wrap: on
line diff
--- a/lib/rfc959.c Thu Jun 03 00:49:34 2004 +0000 +++ b/lib/rfc959.c Sun Jun 06 15:12:35 2004 +0000 @@ -1665,7 +1665,7 @@ static int -rfc959_site (gftp_request * request, const char *command) +rfc959_site (gftp_request * request, int specify_site, const char *command) { char *tempstr, ret; @@ -1673,7 +1673,11 @@ g_return_val_if_fail (command != NULL, GFTP_EFATAL); g_return_val_if_fail (request->datafd > 0, GFTP_EFATAL); - tempstr = g_strconcat ("SITE ", command, "\r\n", NULL); + if (specify_site) + tempstr = g_strconcat ("SITE ", command, "\r\n", NULL); + else + tempstr = g_strconcat (command, "\r\n", NULL); + ret = rfc959_send_command (request, tempstr, 1); g_free (tempstr);