db close routine actually writes data out to disk; return value was

not being checked.  Change code to fail if db->close errors.

PR:		4202
This commit is contained in:
jlemon 1997-08-18 20:48:35 +00:00
parent be2b748c02
commit 667917cb16

View File

@ -405,8 +405,10 @@ main(argc, argv)
error("put");
}
(void)(dp->close)(dp);
(void)(sdp->close)(sdp);
if ((dp->close)(dp) == -1)
error("close");
if ((sdp->close)(sdp) == -1)
error("close");
if (makeold) {
(void)fflush(oldfp);
(void)fclose(oldfp);