Page MenuHomeFreeBSD

top(1): Fix Coverity warning
ClosedPublic

Authored by asomers on Jun 19 2018, 5:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 7, 2:57 AM
Unknown Object (File)
Tue, Oct 6, 11:13 AM
Unknown Object (File)
Wed, Sep 30, 1:21 AM
Unknown Object (File)
Wed, Sep 30, 1:19 AM
Unknown Object (File)
Tue, Sep 29, 11:35 PM
Unknown Object (File)
Sep 11 2026, 1:46 AM
Unknown Object (File)
Sep 10 2026, 9:30 PM
Unknown Object (File)
Sep 9 2026, 12:20 AM
Subscribers

Details

Summary

top(1): Fix Coverity warning

Don't call strerror on negative errnos

Reported by: Coverity
CID: 976708

Test Plan

Use top's interactive kill and renice commands with invalid arguments and
verify that the correct error is printed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17450
Build 17282: arc lint + arc unit