gvfs r1755 - in branches/gnome-2-22: . daemon
- From: sbacher svn gnome org
- To: svn-commits-list gnome org
- Subject: gvfs r1755 - in branches/gnome-2-22: . daemon
- Date: Mon, 21 Apr 2008 22:55:03 +0100 (BST)
Author: sbacher
Date: Mon Apr 21 21:55:03 2008
New Revision: 1755
URL: http://svn.gnome.org/viewvc/gvfs?rev=1755&view=rev
Log:
* daemon/gvfsbackendftp.c: (do_enumerate_directory):
remove trailing '\r', that workarounds a parser issue causing
some filenames to not be listed (#524880)
Modified:
branches/gnome-2-22/ChangeLog
branches/gnome-2-22/daemon/gvfsbackendftp.c
Modified: branches/gnome-2-22/daemon/gvfsbackendftp.c
==============================================================================
--- branches/gnome-2-22/daemon/gvfsbackendftp.c (original)
+++ branches/gnome-2-22/daemon/gvfsbackendftp.c Mon Apr 21 21:55:03 2008
@@ -1782,6 +1782,8 @@
if (got_boundary)
{
name[bytes_read - 1] = 0;
+ if (bytes_read >= 2 && name[bytes_read - 2] == '\r')
+ name[bytes_read - 2] = 0;
DEBUG ("--- %s\n", name);
list = g_list_prepend (list, g_strdup (name));
bytes_read = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]