summaryrefslogtreecommitdiff
path: root/x11/gdm2/files/patch-daemon::slave.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2001-10-16 07:25:04 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2001-10-16 07:25:04 +0000
commit68257a672e5b65e289b4562886666ece70040bb6 (patch)
treea983fd41c70514eb36db451bf7a497c7e02b7877 /x11/gdm2/files/patch-daemon::slave.c
parentUpgrade to 0.88.1 (diff)
Fix several incompatibilities with FreeBSD. This makes gdm working, at least
on my 5-CURRENT with XFree86-3.3.6. PR: 31309 Submitted by: Heath Nielson <heath@cs.byu.edu>
Notes
Notes: svn path=/head/; revision=48834
Diffstat (limited to '')
-rw-r--r--x11/gdm2/files/patch-daemon::slave.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/x11/gdm2/files/patch-daemon::slave.c b/x11/gdm2/files/patch-daemon::slave.c
new file mode 100644
index 000000000000..d2eda7d4f4ed
--- /dev/null
+++ b/x11/gdm2/files/patch-daemon::slave.c
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- daemon/slave.c 2001/10/16 06:36:10 1.1
++++ daemon/slave.c 2001/10/16 06:38:57
+@@ -1088,7 +1088,10 @@
+ /* this is again informal only, if the greeter does time out it will
+ * not actually login a user if it's not enabled for this display */
+ if (d->timed_login_ok) {
+- ve_setenv ("GDM_TIMED_LOGIN_OK", ParsedTimedLogin, TRUE);
++ if (ParsedTimedLogin == NULL)
++ ve_setenv ("GDM_TIMED_LOGIN_OK", "", TRUE);
++ else
++ ve_setenv ("GDM_TIMED_LOGIN_OK", ParsedTimedLogin, TRUE);
+ } else {
+ ve_unsetenv ("GDM_TIMED_LOGIN_OK");
+ }