From cadc209e97b966d53b465da6963143af0ba9cee0 Mon Sep 17 00:00:00 2001 From: Greg McGary Date: Thu, 8 Apr 1999 09:56:41 +0000 Subject: * src/mkid.c (write_id_file): Complain if fclose fails. [From jbb6@acpub.duke.edu] --- src/mkid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mkid.c b/src/mkid.c index fe8466e..b58f40a 100644 --- a/src/mkid.c +++ b/src/mkid.c @@ -622,7 +622,8 @@ write_id_file (struct idhead *idhp) idhp->idh_vec_size = max_vec_size; write_idhead (&idh); - fclose (idhp->idh_FILE); + if (fclose (idhp->idh_FILE) != 0) + error (1, errno, _("error closing `%s'"), idhp->idh_file_name); } /* Define primary and secondary hash and comparison functions for the -- cgit v1.2.3