[gdm/wip/wayland-for-merge: 1/17] slave: Kill off some unused code
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/wip/wayland-for-merge: 1/17] slave: Kill off some unused code
- Date: Thu, 6 Mar 2014 20:46:12 +0000 (UTC)
commit 081be591223b9804d0ecc8c853e3777ad9b88e25
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Mar 6 14:30:41 2014 -0500
slave: Kill off some unused code
daemon/gdm-slave.c | 42 ------------------------------------------
1 files changed, 0 insertions(+), 42 deletions(-)
---
diff --git a/daemon/gdm-slave.c b/daemon/gdm-slave.c
index 20b0203..31dff56 100644
--- a/daemon/gdm-slave.c
+++ b/daemon/gdm-slave.c
@@ -139,44 +139,6 @@ gdm_slave_error_quark (void)
}
static void
-gdm_slave_whack_temp_auth_file (GdmSlave *slave)
-{
-#if 0
- uid_t old;
-
- old = geteuid ();
- if (old != 0)
- seteuid (0);
- if (d->parent_temp_auth_file != NULL) {
- VE_IGNORE_EINTR (g_unlink (d->parent_temp_auth_file));
- }
- g_free (d->parent_temp_auth_file);
- d->parent_temp_auth_file = NULL;
- if (old != 0)
- seteuid (old);
-#endif
-}
-
-
-static void
-create_temp_auth_file (GdmSlave *slave)
-{
-#if 0
- if (d->type == TYPE_FLEXI_XNEST &&
- d->parent_auth_file != NULL) {
- if (d->parent_temp_auth_file != NULL) {
- VE_IGNORE_EINTR (g_unlink (d->parent_temp_auth_file));
- }
- g_free (d->parent_temp_auth_file);
- d->parent_temp_auth_file =
- copy_auth_file (d->server_uid,
- gdm_daemon_config_get_gdmuid (),
- d->parent_auth_file);
- }
-#endif
-}
-
-static void
listify_hash (const char *key,
const char *value,
GPtrArray *env)
@@ -304,8 +266,6 @@ gdm_slave_run_script (GdmSlave *slave,
return TRUE;
}
- create_temp_auth_file (slave);
-
g_debug ("GdmSlave: Running process: %s", script);
error = NULL;
if (! g_shell_parse_argv (script, NULL, &argv, &error)) {
@@ -336,8 +296,6 @@ gdm_slave_run_script (GdmSlave *slave,
g_error_free (error);
}
- gdm_slave_whack_temp_auth_file (slave);
-
if (WIFEXITED (status)) {
g_debug ("GdmSlave: Process exit status: %d", WEXITSTATUS (status));
ret = WEXITSTATUS (status) == 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]