Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 340627 - sys-apps/baselayout-1: comment typo in /etc/init.d/clock
Summary: sys-apps/baselayout-1: comment typo in /etc/init.d/clock
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 05:15 UTC by Brendan Jurd
Modified: 2010-11-22 01:07 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 Brendan Jurd 2010-10-12 05:15:20 UTC
Baselayout versions 1.12.13 and 1.12.14 have the following on line 90 of /etc/init.d/clock:

# Since hwclock always exit's with a 0, need to check its output.

But of course the word "exits" doesn't have an apostrophe.

Reproducible: Always

Steps to Reproduce:
1. Look in /etc/init.d/clock
2. Go to line 90
3. Wince




--- /etc/init.d/clock   2009-11-10 00:22:13.302622000 +1100
+++ /root/clock 2010-10-12 16:13:35.998933634 +1100
@@ -87,7 +87,7 @@
                ret=0
 
        elif [[ -x /sbin/hwclock ]] ; then
-               # Since hwclock always exit's with a 0, need to check its output.
+               # Since hwclock always exits with a 0, need to check its output.
                errstr=$(/sbin/hwclock ${myadj} ${myopts} 2>&1 >/dev/null)
                errstr="${errstr}$(/sbin/hwclock --hctosys ${myopts} 2>&1 >/dev/null)"
Comment 1 SpanKY gentoo-dev 2010-11-22 01:07:25 UTC
either is fine.  the reference is to exit as a function, not as an "exit".  less work to leave it alone.