Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 16459 - function.sh is missing a null string check in esyslog
Summary: function.sh is missing a null string check in esyslog
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 05:13 UTC by SpanKY
Modified: 2003-02-27 05:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-02-27 05:13:41 UTC
in esyslog is this code:
/usr/bin/logger -p ${pri} -t ${tag} -- $*

problem is, if $* is "", then logger waits for data from stdin ...

if you run `ewarn ""` or `ewarn` or `eerror ""` or `eerror`, logger will wait for
data from stdin, thus effectively stalling scripts ...

fix is to something along the lines of inserting this before the call to logger:
[ -z "$*" ] && return 0
Comment 1 Jared H. Hudson (RETIRED) gentoo-dev 2003-02-27 05:38:07 UTC
Will be fixed in the next baselayout. (fix added to CVS already)