Small bug in init-functions => log_use_fancy_output()

Bug #418461 reported by Alkis Georgopoulos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

In /lib/lb/init-functions, function log_use_fancy_output (), this line:

    if [ -t 1 ] && [ "x$TERM" != "" ] && [ "x$TERM" != "xdumb" ] && [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1 && $TPUT setaf 1 >/dev/null 2>&1; then

has a bug in this check:
    [ "x$TERM" != "" ]

That, I guess, was supposed to read
    [ "x$TERM" != "x" ]

to check if $TERM is not empty.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lsb - 4.0-0ubuntu4

---------------
lsb (4.0-0ubuntu4) karmic; urgency=low

  * Merge 3.2-23 from Debian, fixing TERM handling in log_use_fancy_output
    (LP: #418461).
  * Use dpkg --print-architecture rather than
    --print-installation-architecture (LP: #403316).

lsb (3.2-23) unstable; urgency=low

  * Fix tests for $TERM in log_use_fancy_output(). (Closes: #537112, #536190)
  * Add libnss3-1d and libqt4-sql-sqlite to lsb-desktop dependencies.
    (Closes: #534277, #534452)
  * Properly trap open() failures in lsb_release. (Closes: #521462)
  * Ignore empty arguments in /etc/lsb-release. (Closes: #485565)
    May also fix #514041.
  * Better test for existant but unreadable PID file. (Closes: #527890)
  * Add some punctuation to log_{warning,failure}_msg. (Closes: #525684)
  * lsb-core depends on cups-bsd | lpr, since it is more likely that
    someone in 2009 will have CUPS installed already than want to use lpr
    instead. (Closes: #512098)

 -- Colin Watson <email address hidden> Thu, 10 Sep 2009 12:42:03 +0100

Changed in lsb (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.