From d2bce07f9f68c46850721d5fbc167b574be7a8a0 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Fri, 17 Oct 2025 03:16:04 +0200 Subject: Better --- FICS/copyfile.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3