? patch
? programs/gnomevfs-mv
Index: libgnomevfs/gnome-vfs-xfer.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-xfer.c,v
retrieving revision 1.121
diff -u -r1.121 gnome-vfs-xfer.c
--- libgnomevfs/gnome-vfs-xfer.c	11 Feb 2005 23:19:27 -0000	1.121
+++ libgnomevfs/gnome-vfs-xfer.c	7 Mar 2005 07:42:14 -0000
@@ -45,6 +45,7 @@
 #include <glib/gmessages.h>
 #include <string.h>
 #include <sys/time.h>
+#include <unistd.h>
 
 /* Implementation of file transfers (`gnome_vfs_xfer*()' functions).  */
 
@@ -592,6 +593,9 @@
 	result = GNOME_VFS_OK;
 
 	if (recursive) {
+		if(access(uri->text,W_OK)!=0){
+			chmod(uri->text,S_IWUSR | S_IRUSR | S_IXUSR);
+			}
 		result = empty_directory (uri, progress, xfer_options, error_mode, skip);
 		if (result == GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES) {
 			result = non_recursive_empty_directory (uri, progress, xfer_options,
