[gvfs] afp: use delete function to delete temporary file
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afp: use delete function to delete temporary file
- Date: Thu, 25 Aug 2011 19:29:56 +0000 (UTC)
commit 7248a087f9ee7500e3aaa2930e2b59b2b2832eb6
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sun Aug 14 23:33:08 2011 +0200
afp: use delete function to delete temporary file
daemon/gvfsbackendafp.c | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
---
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index 145de56..d6fea53 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -2134,25 +2134,9 @@ close_replace_close_fork_cb (GObject *source_object, GAsyncResult *res, gpointer
GVfsBackendAfp *afp_backend = G_VFS_BACKEND_AFP (source_object);
AfpHandle *afp_handle = (AfpHandle *)user_data;
- GVfsAfpCommand *comm;
-
/* Delete temporary file */
- comm = g_vfs_afp_command_new (AFP_COMMAND_DELETE);
- /* pad byte */
- g_vfs_afp_command_put_byte (comm, 0);
- /* Volume ID */
- g_vfs_afp_command_put_uint16 (comm, afp_backend->volume_id);
- /* Directory ID 2 == / */
- g_vfs_afp_command_put_uint32 (comm, 2);
-
- /* Pathname */
- put_pathname (comm, afp_handle->tmp_filename);
-
- g_vfs_afp_connection_send_command (afp_backend->server->conn, comm, NULL,
- NULL, NULL, NULL);
- g_object_unref (comm);
+ delete (afp_backend, afp_handle->tmp_filename, NULL, NULL, NULL);
-
afp_handle_free (afp_handle);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]