Re: [PATCH] eel_read_entire_file does not work with ftp uris (bug #89047)
- From: Dave Camp <dave ximian com>
- To: Paolo Maggi <maggi athena polito it>
- Cc: nautilus-list gnome org, gnome-vfs ximian com
- Subject: Re: [PATCH] eel_read_entire_file does not work with ftp uris (bug #89047)
- Date: 25 Jul 2002 14:26:59 -0400
Let's try this again.
? gnome-vfs-inet-connection-eof.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-vfs/ChangeLog,v
retrieving revision 1.1334.2.31
diff -u -r1.1334.2.31 ChangeLog
--- ChangeLog 25 Jul 2002 17:50:04 -0000 1.1334.2.31
+++ ChangeLog 25 Jul 2002 18:25:55 -0000
@@ -1,3 +1,8 @@
+2002-07-25 Dave Camp <dave ximian com>
+
+ * libgnomevfs/gnome-vfs-inet-connection.c
+ (gnome_vfs_inet_connection_read): Return EOF if 0 bytes were read.
+
2002-07-25 Michael Meeks <michael ximian com>
* libgnomevfs/gnome-vfs-init.c
Index: libgnomevfs/gnome-vfs-inet-connection.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-inet-connection.c,v
retrieving revision 1.9
diff -u -r1.9 gnome-vfs-inet-connection.c
--- libgnomevfs/gnome-vfs-inet-connection.c 21 Aug 2001 21:40:01 -0000 1.9
+++ libgnomevfs/gnome-vfs-inet-connection.c 25 Jul 2002 18:25:56 -0000
@@ -140,7 +140,8 @@
} else {
*bytes_read = read_val;
}
- return GNOME_VFS_OK;
+
+ return bytes_read == 0 ? GNOME_VFS_ERROR_EOF : GNOME_VFS_OK;
}
static GnomeVFSResult
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]