Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 264465

Summary: sys-apps/setserial-2.17-r4: typo in regexp in /etc/init.d/serial causes setserial to be called with no arguments
Product: Gentoo Linux Reporter: Kyle Liddell <kyle>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: trivial    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Kyle Liddell 2009-04-01 05:51:02 UTC
There's a typo in the regexp in /etc/init.d/serial, line 18:
grep -v "^#\|^ \|^$|^stty" /etc/serial.conf | while read device args
and it should be:
grep -v "^#\|^ \|^$\|^stty" /etc/serial.conf | while read device args
(the last | isn't escaped)

Without that, the loop matches all the blank lines in serial.conf, so during boot the console is flooded with 8-10 setserial help messages.


Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/serial start
2.
3.

Actual Results:  
setserial is run with no args several times, lots of junk on the screen

Expected Results:  
nothing
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-01 21:57:32 UTC
Aleady fixed about 15 months ago:
http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/setserial/files/serial-2.17-r4?r1=1.1&r2=1.2

Just re-emerge the package

*** This bug has been marked as a duplicate of bug 206699 ***