diff options
| -rw-r--r-- | FICS/copyfile.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FICS/copyfile.c b/FICS/copyfile.c index 49bff8c..787db11 100644 --- a/FICS/copyfile.c +++ b/FICS/copyfile.c @@ -53,7 +53,9 @@ fics_copyfile(const char *p1, const char *p2) total_written += ret[1]; } - if (close(fd[0]) != 0 || close(fd[1]) != 0) + if (close(fd[0]) != 0) + perror("close"); + if (close(fd[1]) != 0) perror("close"); if (total_read != total_written) { |
