summaryrefslogtreecommitdiff
path: root/extra/dconf
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-05-12 13:49:26 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-05-12 13:49:26 +0000
commit5c25d28847bcae8c3c51c1babcb09d36c7fbddba (patch)
treea224617b070fe069b5484c6d6444ca3e3df56443 /extra/dconf
parent8867b1d4d0601b21618d44d015460739590ca01d (diff)
Thu May 12 13:49:26 UTC 2011
Diffstat (limited to 'extra/dconf')
-rw-r--r--extra/dconf/fix-crash-when-user-database-is-not-present.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/extra/dconf/fix-crash-when-user-database-is-not-present.patch b/extra/dconf/fix-crash-when-user-database-is-not-present.patch
deleted file mode 100644
index ce748492b..000000000
--- a/extra/dconf/fix-crash-when-user-database-is-not-present.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From c80896f5644ec0a07822047dd7e899da63b42e89 Mon Sep 17 00:00:00 2001
-From: Ryan Lortie <desrt@desrt.ca>
-Date: Sun, 08 May 2011 12:08:38 +0000
-Subject: Fix crash when user database is not present
-
-If we fail to open the database in the user's home directory then the
-variable will be NULL. The refactor of the read function for lockdown
-support missed this check, resulting in a rather dramatic crash on fresh
-accounts.
----
-diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
-index ec99116..087d780 100644
---- a/engine/dconf-engine.c
-+++ b/engine/dconf-engine.c
-@@ -452,7 +452,11 @@ dconf_engine_read_internal (DConfEngine *engine,
- break;
-
- while (i < limit && value == NULL)
-- value = gvdb_table_get_value (engine->gvdbs[i++], key);
-+ {
-+ if (engine->gvdbs[i] != NULL)
-+ value = gvdb_table_get_value (engine->gvdbs[i], key);
-+ i++;
-+ }
-
- g_static_mutex_unlock (&engine->lock);
-
---
-cgit v0.9