summaryrefslogtreecommitdiff
diff options
-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)