Fix 4 warnings in /games reported by Clang Static Analyzer: bcd and caesar are not installed SETGID (at least on my system). Remove the call to setgid() as it becomes redundant. In fortune, make sure a tail file is passed in the args if mandated in the logic. Bail if not. In random(6), fix a memory leak in randomize_fd() Fix: Se attached patch Patch attached with submission follows:
Den 10/10/2012 kl. 13.00 skrev FreeBSD-gnats-submit@freebsd.org: >> Category: misc >> Responsible: freebsd-bugs >> Synopsis: Fix analyzer warnings in /games >> Arrival-Date: Wed Oct 10 11:00:00 UTC 2012 Forgot to link to the reports: = http://scan.freebsd.your.org/freebsd-head/games/2012-10-07-amd64/ Erik=
Responsible Changed From-To: freebsd-bugs->eadler I'll take it.
State Changed From-To: open->analyzed I've submitted changes for bcd, caesar, and random. fortune appears to be a false positive - although an assert might help.
Here's a new patch for fortune with an assert() instead. Thanks, Erik
State Changed From-To: analyzed->patched committed in HEAD
State Changed From-To: patched->closed I shall not MFC this PR