Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 264465 - sys-apps/setserial-2.17-r4: typo in regexp in /etc/init.d/serial causes setserial to be called with no arguments
Summary: sys-apps/setserial-2.17-r4: typo in regexp in /etc/init.d/serial causes setse...
Status: RESOLVED DUPLICATE of bug 206699
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-01 05:51 UTC by Kyle Liddell
Modified: 2009-04-01 21:57 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 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 ***