[gvfs] afp: remove retrieval of UserID since we're not going to use it
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afp: remove retrieval of UserID since we're not going to use it
- Date: Thu, 25 Aug 2011 19:27:00 +0000 (UTC)
commit 513d5bd24d8c6eb48cb064378f6a1a1aea3534cb
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sat Jul 23 22:05:22 2011 +0200
afp: remove retrieval of UserID since we're not going to use it
daemon/gvfsbackendafp.c | 42 ++----------------------------------------
1 files changed, 2 insertions(+), 40 deletions(-)
---
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index 5d0444f..c591df2 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -69,9 +69,6 @@ struct _GVfsBackendAfp
char *user;
GVfsAfpServer *server;
-
- char *logged_in_user;
- gint32 logged_in_user_id;
gint32 time_diff;
guint16 vol_attrs_bitmap;
@@ -2538,45 +2535,10 @@ do_mount (GVfsBackend *backend,
afp_backend->server = g_vfs_afp_server_new (afp_backend->addr);
res = g_vfs_afp_server_login (afp_backend->server, afp_backend->user, mount_source,
- &afp_backend->logged_in_user,
- G_VFS_JOB (job)->cancellable, &err);
+ NULL, G_VFS_JOB (job)->cancellable, &err);
if (!res)
goto error;
-
- /* Get UserID */
- if (afp_backend->logged_in_user)
- {
- comm = g_vfs_afp_command_new (AFP_COMMAND_MAP_NAME);
- /* SubFunction */
- g_vfs_afp_command_put_byte (comm, AFP_MAP_NAME_FUNCTION_NAME_TO_USER_ID);
- /* Name */
- g_vfs_afp_command_put_pascal (comm, afp_backend->logged_in_user);
-
- res = g_vfs_afp_connection_send_command_sync (afp_backend->server->conn,
- comm, G_VFS_JOB (job)->cancellable,
- &err);
- g_object_unref (comm);
- if (!res)
- goto error;
-
- reply = g_vfs_afp_connection_read_reply_sync (afp_backend->server->conn,
- G_VFS_JOB (job)->cancellable,
- &err);
- if (!reply)
- goto error;
-
- res_code = g_vfs_afp_reply_get_result_code (reply);
- if (res_code != AFP_RESULT_NO_ERROR)
- {
- g_object_unref (reply);
- goto generic_error;
- }
-
- g_vfs_afp_reply_read_int32 (reply, &afp_backend->logged_in_user_id);
- g_object_unref (reply);
- }
-
-
+
/* Get Server Parameters */
comm = g_vfs_afp_command_new (AFP_COMMAND_GET_SRVR_PARMS);
/* pad byte */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]