gvfs r2093 - in trunk: . daemon
- From: otte svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r2093 - in trunk: . daemon
- Date: Mon, 17 Nov 2008 11:16:10 +0000 (UTC)
Author: otte
Date: Mon Nov 17 11:16:10 2008
New Revision: 2093
URL: http://svn.gnome.org/viewvc/gvfs?rev=2093&view=rev
Log:
* daemon/gvfsbackendftp.c: (ftp_connection_parse_features):
Be less strict in leading spaces of FEAT reply.
Researched by Oliver Joos. Apparently common, one affected ftp server
visible in bug #556809.
Modified:
trunk/ChangeLog
trunk/daemon/gvfsbackendftp.c
Modified: trunk/daemon/gvfsbackendftp.c
==============================================================================
--- trunk/daemon/gvfsbackendftp.c (original)
+++ trunk/daemon/gvfsbackendftp.c Mon Nov 17 11:16:10 2008
@@ -648,7 +648,12 @@
const char *feature = supported[i];
if (feature[0] != ' ')
continue;
- feature++;
+
+ /* There should just be one space according to RFC2389, but some
+ * servers have more so we deal with any number of leading spaces.
+ */
+ while (feature[0] == ' ')
+ feature++;
for (j = 0; j < G_N_ELEMENTS (features); j++)
{
if (g_ascii_strcasecmp (feature, features[j].name) == 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]