diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-02-14 15:53:38 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-02-14 15:53:38 +0000 |
commit | 20657a1ede2d4ac76174be2b893e4a3fdab5b8d1 (patch) | |
tree | d9a855ff4c4a27d0fe83acc000e8cffdeeb17327 /daemon | |
parent | 070f60830314a235b80d84b01e610c368082545e (diff) | |
download | gvfs-20657a1ede2d4ac76174be2b893e4a3fdab5b8d1.tar.gz |
If lookup returns NULL it already set the error. Handle this in all
2008-02-14 Alexander Larsson <alexl@redhat.com>
* daemon/gvfsbackendcomputer.c:
If lookup returns NULL it already set the error.
Handle this in all callers.
svn path=/trunk/; revision=1274
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gvfsbackendcomputer.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/daemon/gvfsbackendcomputer.c b/daemon/gvfsbackendcomputer.c index b31a9bc6..3a952185 100644 --- a/daemon/gvfsbackendcomputer.c +++ b/daemon/gvfsbackendcomputer.c @@ -697,11 +697,14 @@ try_query_info (GVfsBackend *backend, g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_DELETE, FALSE); g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_ACCESS_CAN_TRASH, FALSE); g_file_info_set_content_type (info, "inode/directory"); + + g_vfs_job_succeeded (G_VFS_JOB (job)); } else if (file != NULL) - file_info_from_file (file, info); - - g_vfs_job_succeeded (G_VFS_JOB (job)); + { + file_info_from_file (file, info); + g_vfs_job_succeeded (G_VFS_JOB (job)); + } return TRUE; } @@ -722,9 +725,11 @@ try_create_dir_monitor (GVfsBackend *backend, if (file != &root) { - g_vfs_job_failed (G_VFS_JOB (job), G_IO_ERROR, - G_IO_ERROR_NOT_SUPPORTED, - _("Can't open mountable file")); + if (file != NULL) + g_vfs_job_failed (G_VFS_JOB (job), G_IO_ERROR, + G_IO_ERROR_NOT_SUPPORTED, + _("Can't open mountable file")); + return TRUE; } |