[gvfs] afp: return G_IO_ERROR_IS_DIRECTORY when trying to open a directory for read
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afp: return G_IO_ERROR_IS_DIRECTORY when trying to open a directory for read
- Date: Thu, 25 Aug 2011 19:28:31 +0000 (UTC)
commit 57111a53efb977bbeac170baadf55599bb786f16
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Tue Aug 2 23:36:47 2011 +0200
afp: return G_IO_ERROR_IS_DIRECTORY when trying to open a directory for read
daemon/gvfsbackendafp.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index 54c8973..161bf45 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -441,7 +441,7 @@ open_fork_cb (GObject *source_object, GAsyncResult *res, gpointer user_data)
_("File doesn't exist"));
break;
case AFP_RESULT_OBJECT_TYPE_ERR:
- g_simple_async_result_set_error (simple, G_IO_ERROR, G_IO_ERROR_NOT_REGULAR_FILE,
+ g_simple_async_result_set_error (simple, G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY,
_("File is a directory"));
break;
case AFP_RESULT_TOO_MANY_FILES_OPEN:
@@ -481,7 +481,7 @@ open_fork (GVfsBackendAfp *afp_backend,
if (is_root (filename))
{
g_simple_async_report_error_in_idle (G_OBJECT (afp_backend), callback,
- user_data, G_IO_ERROR, G_IO_ERROR_NOT_REGULAR_FILE,
+ user_data, G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY,
_("File is a directory"));
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]