summaryrefslogtreecommitdiff
diff options
authorRobert Ancell <robert.ancell@canonical.com>2014-03-13 15:08:02 +1300
committerRobert Ancell <robert.ancell@canonical.com>2014-03-13 15:08:02 +1300
commit5644327fba532e9ecb8cb136450e8db0f1b847df (patch)
treed8bc77769e5975c9ff6e3f1890ac85d6f2353227
parent267a6f85e4308fbd537bf0e7eb38c8e8bf17d036 (diff)
Ensure X authority is written before X server is started
-rw-r--r--src/xauthority.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xauthority.c b/src/xauthority.c
index 2eb4321a..b854670e 100644
--- a/src/xauthority.c
+++ b/src/xauthority.c
@@ -345,6 +345,7 @@ xauth_write (XAuthority *auth, XAuthWriteMode mode, const gchar *filename, GErro
}
g_list_free (records);
+ fsync (output_fd);
close (output_fd);
if (!result)