Bug 45252 - mpg123 dumps core when $TERM is not set
Summary: mpg123 dumps core when $TERM is not set
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Dag-Erling Smørgrav
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-13 00:10 UTC by Gleb Smirnoff
Modified: 2003-02-10 11:02 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (441 bytes, patch)
2002-11-13 00:10 UTC, Gleb Smirnoff
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb Smirnoff 2002-11-13 00:10:05 UTC
	When mpg123 installed from fresh FreeBSD ports is run, and environment
	variable TERM is not set it dumps core. For example mpg123 can be run
	from atrun(8) or cron(8) to act as an alarm.

Fix: The problem is that value taken from getenv() is not checked and
	passed to strcmp().
	Patch for FreeBSD ports (must be applied after all other port's patches) follows:
How-To-Repeat: 	unset TERM
	mpg123 /some/file.mp3
Comment 1 Ying-Chieh Liao freebsd_committer freebsd_triage 2002-11-13 02:03:10 UTC
Responsible Changed
From-To: freebsd-ports->des

over to maintainer
Comment 2 Dag-Erling Smørgrav freebsd_committer freebsd_triage 2003-02-10 11:01:58 UTC
State Changed
From-To: open->closed

Fixed, thanks.