32d84ada85
- Backport FTP and Computer backend patches from master
28 lines
945 B
Diff
28 lines
945 B
Diff
From 81fb75b2dc11a969d890f58bc3255ceae3f7bfde Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Otte <otte@gnome.org>
|
|
Date: Tue, 16 Jun 2009 11:00:30 +0200
|
|
Subject: [PATCH 04/13] [FTP] add the error code for EPRT's 522 error
|
|
|
|
---
|
|
daemon/gvfsftptask.c | 4 ++++
|
|
1 files changed, 4 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/daemon/gvfsftptask.c b/daemon/gvfsftptask.c
|
|
index 879b912..318dde4 100644
|
|
--- a/daemon/gvfsftptask.c
|
|
+++ b/daemon/gvfsftptask.c
|
|
@@ -382,6 +382,10 @@ g_vfs_ftp_task_set_error_from_response (GVfsFtpTask *task, guint response)
|
|
code = G_IO_ERROR_NOT_SUPPORTED;
|
|
msg = _("Operation unsupported");
|
|
break;
|
|
+ case 522: /* EPRT: unsupported network protocol */
|
|
+ code = G_IO_ERROR_NOT_SUPPORTED;
|
|
+ msg = _("Unsupported network protocol");
|
|
+ break;
|
|
case 530: /* Not logged in. */
|
|
code = G_IO_ERROR_PERMISSION_DENIED;
|
|
msg = _("Permission denied");
|
|
--
|
|
1.6.3.2
|
|
|