http://bugzilla.gnome.org/show_bug.cgi?id=350976 https://bugzilla.novell.com/show_bug.cgi?id=146947 libsmbclient returns EINVAL if one sends it filenames with illegal characters, like '\'. Display a more useful error message than "generic error" in that case. --- 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",