[gnome-settings-daemon] updates: Ignore virtual mountpoints when looking for external media
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] updates: Ignore virtual mountpoints when looking for external media
- Date: Tue, 6 Sep 2011 16:10:34 +0000 (UTC)
commit f95736b80dd621fafc35bf8e3aa481e328897545
Author: Richard Hughes <richard hughsie com>
Date: Tue Sep 6 17:09:52 2011 +0100
updates: Ignore virtual mountpoints when looking for external media
Resolves https://bugzilla.gnome.org/show_bug.cgi?id=658282
plugins/updates/gsd-updates-manager.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/updates/gsd-updates-manager.c b/plugins/updates/gsd-updates-manager.c
index ac8feeb..55209cc 100644
--- a/plugins/updates/gsd-updates-manager.c
+++ b/plugins/updates/gsd-updates-manager.c
@@ -1176,13 +1176,17 @@ update_viewer_appeared_cb (GDBusConnection *connection,
static gboolean
file_exists_in_root (const gchar *root, const gchar *filename)
{
- gboolean ret;
+ gboolean ret = FALSE;
GFile *source;
gchar *source_path;
source_path = g_build_filename (root, filename, NULL);
source = g_file_new_for_path (source_path);
+ /* ignore virtual mountpoints */
+ if (!g_file_is_native (source))
+ goto out;
+
/* an interesting file exists */
ret = g_file_query_exists (source, NULL);
g_debug ("checking for %s: %s", source_path, ret ? "yes" : "no");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]