Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52174 - courier-imapd configuration contains Bashism
Summary: courier-imapd configuration contains Bashism
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-27 04:03 UTC by Jonathan Rogers
Modified: 2004-06-26 16:23 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 Jonathan Rogers 2004-05-27 04:03:54 UTC
The configuration file "/usr/lib/courier-imap/gentoo-imapd.rc" should either start with "#! /bin/bash" or be switched to Bourne shell syntax.
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-05-27 09:27:30 UTC
could you please point out which bashism we've used?
Comment 2 Jonathan Rogers 2004-05-27 11:26:01 UTC
At least one Bashism is the "source" keyword, which is equivalent of the Bourne shell "." (dot). This is what I get if I try to start courier-imapd and /bin/sh is a link to /bin/ash:

--------------------------------------------------------------------------
 * Starting courier-imapd...
/usr/lib/courier-imap/gentoo-imapd.rc: 12: source: not found
/usr/lib/courier-imap/gentoo-imapd.rc: 13: source: not found
unlimited
Invalid port: /usr/sbin/imaplogin
ll_daemon_start: Resource temporarily unavailable                         [ !! ]
Comment 3 Jonathan Rogers 2004-05-27 11:35:40 UTC
Now that I look closer, I see that every file in /usr/lib/courier-imap is executed by /bin/sh and contains the "source" keyword.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-06-26 16:23:37 UTC
fixed in cvs for 3.0.5