hal/hald hald.c,1.33,1.34

David Zeuthen david at freedesktop.org
Wed Apr 13 20:19:00 PDT 2005


Update of /cvs/hal/hal/hald
In directory gabe:/tmp/cvs-serv8858/hald

Modified Files:
	hald.c 
Log Message:
2005-04-13  David Zeuthen  <davidz at redhat.com>

        Some patches from Martin Pitt <martin at piware.de>.

        * tools/device-manager/Representation.py:
        (Representation.load_and_scale_icon): Use TRUE instead of gtk.TRUE
        since the latter is deprecated

        * hald/hald.c (main): Drop privileges a bit later so we have a
        chance to bind to the netlink socket



Index: hald.c
===================================================================
RCS file: /cvs/hal/hal/hald/hald.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- hald.c	8 Apr 2005 18:10:19 -0000	1.33
+++ hald.c	14 Apr 2005 03:18:58 -0000	1.34
@@ -490,9 +490,6 @@
 	/* will fork into two; only the child will return here if we are successful */
 	/*master_slave_setup ();*/
 
-	if (!retain_privs)
-		drop_privileges();
-
 	loop = g_main_loop_new (NULL, FALSE);
 
 	HAL_INFO ((PACKAGE_STRING));
@@ -593,6 +590,9 @@
 	/* initialize operating system specific parts */
 	osspec_init ();
 
+	if (!retain_privs)
+		drop_privileges();
+
 	hald_is_initialising = TRUE;
 
 	/* detect devices */




More information about the hal-commit mailing list