diff options
author | Greg McGary <greg@mcgary.org> | 1999-04-08 09:56:41 +0000 |
---|---|---|
committer | Greg McGary <greg@mcgary.org> | 1999-04-08 09:56:41 +0000 |
commit | cadc209e97b966d53b465da6963143af0ba9cee0 (patch) | |
tree | 282d007aa67a5ef89e71e85c10b9a4af8b1b2de0 | |
parent | 797dd02870ed606e1503e0a24b2d1e4e4068244b (diff) | |
download | idutils-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |