[gvfs/wip/rishi/goa: 4/6] copy: error checking
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/rishi/goa: 4/6] copy: error checking
- Date: Tue, 25 Aug 2015 19:17:27 +0000 (UTC)
commit fb0fe6729dabca48ca344bf8febfb74620049e92
Author: Debarshi Ray <debarshir gnome org>
Date: Tue Aug 25 20:39:54 2015 +0200
copy: error checking
daemon/gvfsbackendgoogle.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendgoogle.c b/daemon/gvfsbackendgoogle.c
index c7b9ac7..29bf3c2 100644
--- a/daemon/gvfsbackendgoogle.c
+++ b/daemon/gvfsbackendgoogle.c
@@ -889,6 +889,12 @@ g_vfs_backend_google_copy (GVfsBackend *_self,
unescaped_destination);
source = unescaped_source;
+ if (unescaped_destination == NULL)
+ {
+ g_vfs_job_failed (G_VFS_JOB (job), G_IO_ERROR, G_IO_ERROR_NOT_FOUND, _("No such file or directory"));
+ goto out;
+ }
+
if (flags & G_FILE_COPY_BACKUP)
{
/* Return G_IO_ERROR_NOT_SUPPORTED instead of
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]