summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>1999-04-08 09:56:41 +0000
committerGreg McGary <greg@mcgary.org>1999-04-08 09:56:41 +0000
commitcadc209e97b966d53b465da6963143af0ba9cee0 (patch)
tree282d007aa67a5ef89e71e85c10b9a4af8b1b2de0
parent797dd02870ed606e1503e0a24b2d1e4e4068244b (diff)
downloadidutils-cadc209e97b966d53b465da6963143af0ba9cee0.tar.gz
idutils-cadc209e97b966d53b465da6963143af0ba9cee0.tar.bz2
idutils-cadc209e97b966d53b465da6963143af0ba9cee0.zip
* src/mkid.c (write_id_file): Complain if fclose fails.
[From jbb6@acpub.duke.edu]
-rw-r--r--src/mkid.c3
1 files changed, 2 insertions, 1 deletions
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