2007-06-26 17:08:29 -04:00
|
|
|
$OpenBSD: patch-daemon_slave_c,v 1.7 2007/06/26 21:08:29 martynas Exp $
|
|
|
|
--- daemon/slave.c.orig Tue May 29 00:48:11 2007
|
|
|
|
+++ daemon/slave.c Tue Jun 26 23:49:42 2007
|
|
|
|
@@ -2722,7 +2722,7 @@ gdm_slave_greeter (void)
|
2003-10-08 11:57:01 -04:00
|
|
|
|
2007-05-18 13:20:39 -04:00
|
|
|
exec_command (LIBEXECDIR "/gdmlogin", NULL);
|
2003-10-08 11:57:01 -04:00
|
|
|
|
2007-05-18 13:20:39 -04:00
|
|
|
- VE_IGNORE_EINTR (execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", NULL));
|
|
|
|
+ VE_IGNORE_EINTR (execl (LIBEXECDIR "/gdmlogin", LIBEXECDIR "/gdmlogin", (void *)NULL));
|
2003-10-08 11:57:01 -04:00
|
|
|
|
|
|
|
gdm_error_box (d,
|
|
|
|
GTK_MESSAGE_ERROR,
|
2007-06-26 17:08:29 -04:00
|
|
|
@@ -3658,8 +3658,7 @@ session_child_run (struct passwd *pwent,
|
2003-10-08 11:57:01 -04:00
|
|
|
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,
|
2007-05-18 13:20:39 -04:00
|
|
|
_("%s: setusercontext () failed for %s. "
|
2004-06-24 19:58:34 -04:00
|
|
|
"Aborting."), "session_child_run",
|