- make the *beep* sounds work - install the Xsession script with the executable bit, so gdm won't try to start gnome in failsafe mode. as reported by several users. tested by fkr@
31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
$OpenBSD: patch-daemon_slave_c,v 1.8 2007/11/27 20:26:13 jasper Exp $
|
|
--- daemon/slave.c.orig Mon Oct 15 23:43:04 2007
|
|
+++ daemon/slave.c Sat Oct 27 17:26:46 2007
|
|
@@ -2843,7 +2843,7 @@ gdm_slave_greeter (void)
|
|
|
|
exec_command (LIBEXECDIR "/gdmlogin", NULL);
|
|
|
|
- VE_IGNORE_EINTR (execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", NULL));
|
|
+ VE_IGNORE_EINTR (execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", (void *)NULL));
|
|
|
|
gdm_errorgui_error_box (d,
|
|
GTK_MESSAGE_ERROR,
|
|
@@ -3567,6 +3567,7 @@ session_child_run (struct passwd *pwent,
|
|
GString *fullexec = NULL;
|
|
const char *shell = NULL;
|
|
const char *greeter;
|
|
+ const char *login;
|
|
gint result;
|
|
gchar **argv = NULL;
|
|
|
|
@@ -3787,8 +3788,7 @@ session_child_run (struct passwd *pwent,
|
|
if (setusercontext (NULL, pwent, pwent->pw_uid,
|
|
LOGIN_SETLOGIN | LOGIN_SETPATH |
|
|
LOGIN_SETPRIORITY | LOGIN_SETRESOURCES |
|
|
- LOGIN_SETUMASK | LOGIN_SETUSER |
|
|
- LOGIN_SETENV) < 0)
|
|
+ LOGIN_SETUMASK | LOGIN_SETUSER) < 0)
|
|
gdm_child_exit (DISPLAY_REMANAGE,
|
|
_("%s: setusercontext () failed for %s. "
|
|
"Aborting."), "session_child_run",
|