--- modules/Backup/sftp-method.c.~1~ 2007-04-10 14:03:56.000000000 +0200 +++ modules/sftp-method.c 2007-05-03 10:56:36.000000000 +0200 @@ -2007,6 +2007,13 @@ sftp_connection_unref (conn); sftp_connection_unlock (conn); + /* The sftp server only gives us a generic error when + * creating a file fails due to the file already + * existing + */ + if (res == GNOME_VFS_ERROR_GENERIC && exclusive && gnome_vfs_uri_exists (uri)) + res = GNOME_VFS_ERROR_FILE_EXISTS; + DEBUG (g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "%s: Exit", G_GNUC_FUNCTION)); return res; }