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:
parent
7fedb877a4
commit
7256f6b3ab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=28385
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user