summaryrefslogtreecommitdiff
path: root/community/lightdm/lightdm-corrupt-x-authority.patch
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-07 03:11:14 -0700
committerroot <root@rshg054.dnsready.net>2013-10-07 03:11:14 -0700
commit9159b8ca1c97a398204d7a7d4d78c3394639bd02 (patch)
treeb5f4812b9eb3f353870fe858d46ca76e9ea1f027 /community/lightdm/lightdm-corrupt-x-authority.patch
parentd3bff0fc1a69eb487b5d45b168c018f44a53b223 (diff)
Mon Oct 7 03:07:04 PDT 2013
Diffstat (limited to 'community/lightdm/lightdm-corrupt-x-authority.patch')
-rwxr-xr-xcommunity/lightdm/lightdm-corrupt-x-authority.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/community/lightdm/lightdm-corrupt-x-authority.patch b/community/lightdm/lightdm-corrupt-x-authority.patch
new file mode 100755
index 000000000..f994b394c
--- /dev/null
+++ b/community/lightdm/lightdm-corrupt-x-authority.patch
@@ -0,0 +1,21 @@
+=== modified file 'src/xauthority.c'
+--- src/xauthority.c 2013-09-10 23:14:12 +0000
++++ src/xauthority.c 2013-09-30 02:59:01 +0000
+@@ -237,7 +237,7 @@
+ gboolean
+ x_authority_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GError **error)
+ {
+- gchar *input;
++ gchar *input = NULL;
+ gsize input_length = 0, input_offset = 0;
+ GList *link, *records = NULL;
+ XAuthority *a;
+@@ -328,6 +328,7 @@
+ }
+
+ errno = 0;
++ result = TRUE;
+ for (link = records; link && result; link = link->next)
+ {
+ XAuthority *a = link->data;
+