Bug 241896 - /etc/profile.d/lang.sh calls unicode_stop without unicode_start
Summary: /etc/profile.d/lang.sh calls unicode_stop without unicode_start
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 6
Hardware: All
OS: Linux
low
high
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On: 241893
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-05-31 15:07 UTC by Thomas Steudten
Modified: 2014-03-17 03:07 UTC (History)
2 users (show)

Fixed In Version: 8.64-1
Clone Of:
Environment:
Last Closed: 2008-02-26 06:55:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Thomas Steudten 2007-05-31 15:07:15 UTC
On console/vt /etc/init.d/functions sources /etc/profile.d/lang.sh and this
script  calls /bin/unicode_stop (which has a bug "missing FD in test -t"),
without calling unicode_start.

This gives trouble in /etc/redhat-lsb/lsb_pidofproc, because this output is used
in an expression like pid=$(pidofproc test), and the output from
/bin/unicode_stop  fills the pid variable, if no process is found by pidof, and
so the test "test -z "$pid" will fail.

/etc/init.d/tor use the lsb-pidofproc version.

Reproduce on console/vt - not in xterm:
1) /etc/init.d/tor stop
2) sh -x /etc/init.d/tor status |cat -v
See $pid variable..

Comment 1 Bill Nottingham 2008-02-26 06:55:16 UTC
This should be fixed in 8.64-1.


Note You need to log in before you can comment on or make changes to this bug.