[gnome-settings-daemon] power: Remove obsolete check
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Remove obsolete check
- Date: Mon, 5 Mar 2012 15:27:20 +0000 (UTC)
commit 305057ac831b357a03bb3f244059048551321b71
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 5 15:22:46 2012 +0000
power: Remove obsolete check
We already check whether we're running as root.
plugins/power/gsd-backlight-helper.c | 9 ---------
1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/plugins/power/gsd-backlight-helper.c b/plugins/power/gsd-backlight-helper.c
index fd9325e..533bec0 100644
--- a/plugins/power/gsd-backlight-helper.c
+++ b/plugins/power/gsd-backlight-helper.c
@@ -223,15 +223,6 @@ main (int argc, char *argv[])
goto out;
}
- /* check we're not being spoofed */
- pkexec_uid_str = g_getenv ("PKEXEC_UID");
- if (pkexec_uid_str == NULL) {
- g_print ("%s\n",
- "This program must only be run through pkexec");
- retval = GSD_BACKLIGHT_HELPER_EXIT_CODE_INVALID_USER;
- goto out;
- }
-
/* SetBrightness */
if (set_brightness != -1) {
filename_file = g_build_filename (filename, "brightness", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]