summaryrefslogtreecommitdiffstats
path: root/daemon/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/file.c')
-rw-r--r--daemon/file.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/daemon/file.c b/daemon/file.c
index 0eef0c09..3f07ffc1 100644
--- a/daemon/file.c
+++ b/daemon/file.c
@@ -58,7 +58,11 @@ do_touch (char *path)
return -1;
}
- close (fd);
+ if (close (fd) == -1) {
+ reply_with_perror ("close: %s", path);
+ return -1;
+ }
+
return 0;
}