aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index 35d1bcd..8b45e24 100644
--- a/text.c
+++ b/text.c
@@ -921,7 +921,7 @@ static bool text_save_commit_atomic(TextSave *ctx) {
if (dir == -1)
return false;
- if (fsync(dir) == -1) {
+ if (fsync(dir) == -1 && errno != EINVAL) {
close(dir);
return false;
}