openbsd-ports/x11/gnome/gdm/patches/patch-daemon_slave_c

23 lines
928 B
Plaintext
Raw Normal View History

$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
exec_command (LIBEXECDIR "/gdmlogin", NULL);
2003-10-08 11:57:01 -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,
@@ -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,
_("%s: setusercontext () failed for %s. "
"Aborting."), "session_child_run",