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

Bug 52174

Summary: courier-imapd configuration contains Bashism
Product: Gentoo Linux Reporter: Jonathan Rogers <jonner>
Component: [OLD] ServerAssignee: Robin Johnson <robbat2>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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