[gdm] Fix errors in the setup code for gnome-initial-setup
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] Fix errors in the setup code for gnome-initial-setup
- Date: Sat, 29 Sep 2012 00:01:42 +0000 (UTC)
commit 5479f2542c79873d3f36968bf081274ab9c241fd
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 28 19:56:51 2012 -0400
Fix errors in the setup code for gnome-initial-setup
There is a code path where we forgot to clear an error
before reusing it. And the code that was reusing it
was using a mis-constructed file path, guaranteeing
a pile-on.
daemon/gdm-simple-slave.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gdm-simple-slave.c b/daemon/gdm-simple-slave.c
index 91515ad..b7053ac 100644
--- a/daemon/gdm-simple-slave.c
+++ b/daemon/gdm-simple-slave.c
@@ -1147,12 +1147,14 @@ create_initial_setup_user (GdmSimpleSlave *slave)
ret = FALSE;
goto out;
}
+
+ g_clear_error (&error);
} else {
g_object_unref (user);
}
/* Now, make sure the PolicyKit policy is in place */
- src_file = g_file_new_for_path (DATADIR "/gnome-initial-setup" RULES_FILE);
+ src_file = g_file_new_for_path (DATADIR "/gnome-initial-setup/" RULES_FILE);
dest_file = g_file_new_for_path (RULES_DIR RULES_FILE);
if (!g_file_copy (src_file,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]