diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2005-01-21 15:36:45 +0000 |
commit | 7011c19a8c96a2f8fb7c04d61cb28cdc507584a6 (patch) | |
tree | 22c0efaf2b6bb5b461389f9bac9542c7e3a5909a /x11/gnome-session/files/patch-gnome-session_logout.c | |
parent | Now buildable on 4.x, still broken on >= 5.x. (diff) |
This commit was manufactured by cvs2svn to create tag 'RELEASE_4_11_0'.release/4.11.0
Diffstat (limited to 'x11/gnome-session/files/patch-gnome-session_logout.c')
-rw-r--r-- | x11/gnome-session/files/patch-gnome-session_logout.c | 36 |
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; |