Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388723 - mail-filter/dcc-1.3.140 - init script throws errormessage when /bin/sh points to dash
Summary: mail-filter/dcc-1.3.140 - init script throws errormessage when /bin/sh points...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 23:57 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2013-01-01 18:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dcc.initd-1.3.140.diff (dcc.initd-1.3.140.diff,567 bytes, patch)
2011-10-27 23:57 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-10-27 23:57:59 UTC
Created attachment 291055 [details, diff]
dcc.initd-1.3.140.diff

/lib64/rc/sh/gendepends.sh: 54: /etc/init.d/dcc: Syntax error: Bad for loop variable

# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Oct 28 01:36 /bin/sh -> dash
# /etc/init.d/dcc start
/lib64/rc/sh/runscript.sh: 54: /etc/init.d/dcc: Syntax error: Bad for loop variable
 * ERROR: dcc failed to start


The attached patch should fix this.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-01-01 18:03:47 UTC
+  01 Jan 2013; Lars Wendler <polynomial-c@gentoo.org> files/dcc.initd-1.3.140:
+  Non-maintainer commit: Removed bashism in init script (bug #388723).
+