forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdd63a71
committed
Check for fseeko() failure in pg_dump's _tarAddFile().
Coverity pointed out, not unreasonably, that we checked fseeko'sresult at every other call site but these. Failure to seek in thetemp file (note this is NOT pg_dump's output file) seems quiteunlikely, and even if it did happen the file length cross-checkfurther down would probably detect the problem. Still, that's apoor excuse for not checking the result of a system call.1 parent900429d commitdd63a71
1 file changed
+4
-2
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1082 | 1082 |
| |
1083 | 1083 |
| |
1084 | 1084 |
| |
1085 |
| - | |
| 1085 | + | |
| 1086 | + | |
1086 | 1087 |
| |
1087 | 1088 |
| |
1088 | 1089 |
| |
1089 |
| - | |
| 1090 | + | |
| 1091 | + | |
1090 | 1092 |
| |
1091 | 1093 |
| |
1092 | 1094 |
| |
|
0 commit comments
Comments
(0)