Index: gnome-vfs/ChangeLog
===================================================================
RCS file: /export/cvs/head/gnome-vfs/ChangeLog,v
retrieving revision 1.2228
diff -p -u -5 -r1.2228 ChangeLog
--- gnome-vfs/ChangeLog	23 Jul 2005 23:09:26 -0000	1.2228
+++ gnome-vfs/ChangeLog	25 Jul 2005 09:54:03 -0000
@@ -1,5 +1,10 @@
+2005-07-25  Archana Shah  <archana.shah@wipro.com>
+	* modules/ftp-method.c: (do_read_directory): Show the permission for
+	files and folders in ftp protocol.
+	Fixes bug #309700
+
 2005-07-24  Christian Kellner  <gicmo@gnome.org>
 
 	* configure.in: Indicate if we build the cdda method
 	* modules/cdda-cddb.c: (CDDBRead): Initialize disc. This should
 	fix bug #309661.
Index: gnome-vfs/modules/ftp-method.c
===================================================================
RCS file: /export/cvs/head/gnome-vfs/modules/ftp-method.c,v
retrieving revision 1.117
diff -p -u -5 -r1.117 ftp-method.c
--- gnome-vfs/modules/ftp-method.c	2 Jun 2005 14:10:56 -0000	1.117
+++ gnome-vfs/modules/ftp-method.c	25 Jul 2005 09:54:04 -0000
@@ -2504,11 +2504,14 @@ do_read_directory (GnomeVFSMethod *metho
 			success = unix_ls_to_file_info (handle->dirlistptr, file_info,
 			                                handle->file_info_options);
 		}
 
 		/* permissions aren't valid */
-		file_info->valid_fields &= ~GNOME_VFS_FILE_INFO_FIELDS_PERMISSIONS;
+		file_info->valid_fields |= GNOME_VFS_FILE_INFO_FIELDS_PERMISSIONS;
+		/* Set the uid and gid fields naively to the current user to trick nautilus */
+		file_info->uid = getuid ();
+		file_info->gid = getgid ();
 
 		if (handle->file_info_options & GNOME_VFS_FILE_INFO_FOLLOW_LINKS &&
 		    file_info->type == GNOME_VFS_FILE_TYPE_SYMBOLIC_LINK) {
 			GnomeVFSURI *uri;
 			GnomeVFSFileInfo *symlink_info;
