changeset 533:0f43d84c7f7c

2004-8-17 Brian Masney <masneyb@gftp.org> * lib/rfc959.c (rfc959_set_file_time, rfc959_chmod) - enclose the filename in "quotes"
author masneyb
date Wed, 18 Aug 2004 02:09:12 +0000
parents bccfdbfaac00
children bd6e59d7b5b4
files ChangeLog lib/rfc959.c
diffstat 2 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Aug 18 01:58:43 2004 +0000
+++ b/ChangeLog	Wed Aug 18 02:09:12 2004 +0000
@@ -1,4 +1,7 @@
 2004-8-17 Brian Masney <masneyb@gftp.org>
+	* lib/rfc959.c (rfc959_set_file_time, rfc959_chmod) - enclose the
+	filename in "quotes"
+
 	* lib/gftp.h lib/misc.c lib/protocols.c lib/rfc2068.c lib/rfc959.c -
 	added #defines for encoding and decoding file sizes that will work
 	properly for large files (GFTP_OFF_T_HEX_PRINTF_MOD,
@@ -2741,7 +2744,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.306 2004/08/18 01:58:43 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.307 2004/08/18 02:09:12 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/lib/rfc959.c	Wed Aug 18 01:58:43 2004 +0000
+++ b/lib/rfc959.c	Wed Aug 18 02:09:12 2004 +0000
@@ -1663,7 +1663,7 @@
   g_return_val_if_fail (file != NULL, GFTP_EFATAL);
   g_return_val_if_fail (request->datafd > 0, GFTP_EFATAL);
 
-  tempstr = g_strdup_printf ("SITE CHMOD %o %s\r\n", mode, file);
+  tempstr = g_strdup_printf ("SITE CHMOD %o \"%s\"\r\n", mode, file);
   ret = rfc959_send_command (request, tempstr, 1);
   g_free (tempstr);
 
@@ -1740,7 +1740,7 @@
   if (datestr == NULL)
     return (GFTP_EFATAL);
 
-  tempstr = g_strconcat ("SITE UTIME ", datestr, " ", file, "\r\n", NULL);
+  tempstr = g_strconcat ("SITE UTIME ", datestr, " \"", file, "\"\r\n", NULL);
   g_free (datestr);
 
   ret = rfc959_send_command (request, tempstr, 1);