aboutsummaryrefslogtreecommitdiff
path: root/x11/gnome-session/files/patch-gnome-session_logout.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/gnome-session/files/patch-gnome-session_logout.c')
-rw-r--r--x11/gnome-session/files/patch-gnome-session_logout.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/x11/gnome-session/files/patch-gnome-session_logout.c b/x11/gnome-session/files/patch-gnome-session_logout.c
deleted file mode 100644
index f82aefdc7d2e..000000000000
--- a/x11/gnome-session/files/patch-gnome-session_logout.c
+++ /dev/null
@@ -1,36 +0,0 @@
---- gnome-session/logout.c.orig Sun May 9 15:45:34 2004
-+++ gnome-session/logout.c Sun May 9 15:48:29 2004
-@@ -37,12 +37,20 @@
-
- static gchar *halt_command[] =
- {
-+#ifdef __FreeBSD__
-+ HALT_COMMAND, "-p", "now", NULL
-+#else
- HALT_COMMAND, NULL
-+#endif
- };
-
- static gchar *reboot_command[] =
- {
-+#ifdef __FreeBSD__
-+ REBOOT_COMMAND, "-r", "now", NULL
-+#else
- REBOOT_COMMAND, NULL
-+#endif
- };
-
- /* What action to take upon shutdown */
-@@ -401,8 +409,12 @@
- */
- s = g_strconcat ("/var/lock/console/", g_get_user_name (), NULL);
- t = g_strconcat ("/var/run/console/", g_get_user_name (), NULL);
-+#ifndef __FreeBSD__
- if (((geteuid () == 0) || g_file_exists (t) || g_file_exists(s)) &&
- access (halt_command[0], X_OK) == 0)
-+#else
-+ if (access (halt_command[0], X_OK) == 0)
-+#endif
- {
- GtkWidget *title, *spacer;
- GtkWidget *action_vbox, *hbox;