Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
gvfs
0001-afp-Don-t-crash-when-opening-the-root-dire...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-afp-Don-t-crash-when-opening-the-root-directory.patch of Package gvfs
From 20bb9205b25ab07864f3733205e420508b2102a6 Mon Sep 17 00:00:00 2001 From: Ross Lagerwall <rosslagerwall@gmail.com> Date: Thu, 19 Dec 2013 15:53:24 +0200 Subject: [PATCH] afp: Don't crash when opening the root directory Previously, opening the root directory would generate an error and cause the backend to abort: backend_dbus_handler org.gtk.vfs.Mount:OpenForRead Queued new job 0xba4350 (GVfsJobOpenForRead) ** (process:6778): CRITICAL **: g_vfs_afp_volume_open_fork_finish: assertion 'g_simple_async_result_is_valid (res, G_OBJECT (volume), g_vfs_afp_volume_open_fork)' failed (process:6778): GLib-CRITICAL **: g_error_copy: assertion 'error != NULL' failed Instead, remove the special-casing for the root directory since it is handled correctly anyway. https://bugzilla.gnome.org/show_bug.cgi?id=720743 --- daemon/gvfsafpvolume.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/daemon/gvfsafpvolume.c b/daemon/gvfsafpvolume.c index 1ad8cd7..5b63ee0 100644 --- a/daemon/gvfsafpvolume.c +++ b/daemon/gvfsafpvolume.c @@ -460,14 +460,6 @@ g_vfs_afp_volume_open_fork (GVfsAfpVolume *volume, g_return_if_fail (G_VFS_IS_AFP_VOLUME (volume)); priv = volume->priv; - - if (is_root (filename)) - { - g_simple_async_report_error_in_idle (G_OBJECT (volume), callback, - user_data, G_IO_ERROR, G_IO_ERROR_IS_DIRECTORY, - _("File is directory")); - return; - } comm = g_vfs_afp_command_new (AFP_COMMAND_OPEN_FORK); /* data fork */ -- 1.8.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor