2006-08-11  Federico Mena Quintero  <federico@novell.com>

	* src/file-manager/fm-error-reporting.c
	(fm_report_error_renaming_file): If you are in an SMB share and
	rename something to "hel\lo.txt" (note the backslash),
	libsmbclient returns EINVAL.  Gnome-VFS translates this to
	GNOME_VFS_ERROR_BAD_PARAMETERS.  Use this code to print an
	"invalid character" message, instead of a generic "could not
	rename" message.  Fixes bug #350976.

--- src/file-manager/fm-error-reporting.c.orig	2006-01-16 13:20:30.000000000 -0600
+++ src/file-manager/fm-error-reporting.c	2006-01-31 13:00:05.000000000 -0600
@@ -133,6 +133,11 @@
 		message = g_strdup_printf (_("Couldn't change the name of \"%s\" because it is on a read-only disk"),
 					   original_name_truncated);
 		break;
+	case GNOME_VFS_ERROR_BAD_PARAMETERS:
+		message = g_strdup_printf (_("Couldn't rename \"%s\" to \"%s\".  Please make sure the new name has "
+					     "only valid characters in it."),
+					   original_name_truncated, new_name_truncated);
+		break;
 	default:
 		/* We should invent decent error messages for every case we actually experience. */
 		g_warning ("Hit unhandled case %d (%s) in fm_report_error_renaming_file", 
