Commits
Chris Jones authored f2bc6a26c1e
1 - | From 047f92a85796fca563d9345d6c4798b64be77cff Mon Sep 17 00:00:00 2001 |
2 - | From: "Dr. Tilmann Bubeck" <tilmann@bubecks.de> |
3 - | Date: Tue, 24 Jun 2014 00:22:54 +0200 |
4 - | Subject: [PATCH 1/4] Fix for xauth failing on ENOSPC (= disk full) |
5 - | |
6 - | If xauth must store its XAUTHORITY file on a file system which is |
7 - | full, it will be unable to write the changes. This condition was |
8 - | not detected and therefore often the whole XAUTHORITY file was |
9 - | cleared. Here is the fix. |
10 - | |
11 - | Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=21260 |
12 - | |
13 - | Signed-off-by: Dr. Tilmann Bubeck <tilmann@bubecks.de> |
14 - | --- |
15 - | process.c | 5 ++++- |
16 - | 1 file changed, 4 insertions(+), 1 deletion(-) |
17 - | |
18 - | diff --git a/process.c b/process.c |
19 - | index b44858a..5b12c92 100644 |
20 - | --- a/process.c |
21 - | +++ b/process.c |
22 - | |
23 - | } |
24 - | } |
25 - | |
26 - | - (void) fclose (fp); |
27 - | + if (fclose(fp)) { |
28 - | + return -1; |
29 - | + } |
30 - | + |
31 - | return 0; |
32 - | } |
33 - | |
34 - | -- |
35 - | 2.3.0 |
36 - | |