Fix empdump to check for export write errors
This commit is contained in:
parent
e5ef3d4840
commit
15109ebef0
1 changed files with 5 additions and 0 deletions
|
@ -163,6 +163,11 @@ main(int argc, char *argv[])
|
|||
continue;
|
||||
dump_table(i, human);
|
||||
}
|
||||
if (fclose(stdout) != 0) {
|
||||
fprintf(stderr, "%s: error writing export (%s)\n",
|
||||
argv[0], strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
/* write out imported data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue