[gvfs] sftp: Return the correct error code on failed symlink creation
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] sftp: Return the correct error code on failed symlink creation
- Date: Thu, 31 Oct 2013 13:07:15 +0000 (UTC)
commit 38a0034e98537082054a4f2a2a2c3a898744b5bf
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Sat Oct 26 22:02:49 2013 +0200
sftp: Return the correct error code on failed symlink creation
If the symlink path already exists, return the correct error code of
G_IO_ERROR_EXISTS.
https://bugzilla.gnome.org/show_bug.cgi?id=710935
daemon/gvfsbackendsftp.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c
index 86cbcb0..8ffad1e 100644
--- a/daemon/gvfsbackendsftp.c
+++ b/daemon/gvfsbackendsftp.c
@@ -4395,7 +4395,7 @@ make_symlink_reply (GVfsBackendSftp *backend,
gpointer user_data)
{
if (reply_type == SSH_FXP_STATUS)
- result_from_status (job, reply, -1, -1);
+ result_from_status (job, reply, G_IO_ERROR_EXISTS, -1);
else
g_vfs_job_failed (job, G_IO_ERROR, G_IO_ERROR_FAILED,
_("Invalid reply received"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]