Fix various Coverity issues in savecore.c:
CID1009429: Fix unchecked return value from lseek while clearing dump
CID1007781: Fix file descriptor leak in DoFile
CID1007261: Don't send potentially unterminated string to syslog(3)
Details
Details
- Reviewers
 markj - Commits
 - rS289845: Fix various Coverity issues in sbin/savecore/savecore.c:
 
Create and save dumps with various savecore options
Diff Detail
Diff Detail
- Repository
 - rS FreeBSD src repository - subversion
 - Lint
 Lint Passed - Unit
 No Test Coverage - Build Status
 Buildable 912 Build 912: arc lint + arc unit 
Event Timeline
| sbin/savecore/savecore.c | ||
|---|---|---|
| 731 | Missing parens for sizeof. It also feels a bit unusual to me to have the write() call on the RHS here.  | |