diff options
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/copyfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/copyfile.c b/FICS/copyfile.c index 84836fe..208f2e2 100644 --- a/FICS/copyfile.c +++ b/FICS/copyfile.c @@ -52,8 +52,8 @@ fics_copyfile(const char *p1, const char *p2) total_written += ret[1]; } - close(fd[0]); - close(fd[1]); + if (close(fd[0]) != 0 || close(fd[1]) != 0) + perror("close"); if (total_read != total_written) { warnx("%s: total written mismatch total read", __func__); |
