Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 1837 - /etc/init.d/autofs has a bad sed script
Summary: /etc/init.d/autofs has a bad sed script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-16 11:32 UTC by Karl Trygve Kalleberg (RETIRED)
Modified: 2003-02-04 19:42 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 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2002-04-16 11:32:39 UTC
net-fs/autofs-3.1.7-r2 installs /etc/init.d/autofs.

The following expression calculates the name of the pidfile (line 86):
pidfile=/var/run/autofs`echo $mnt | sed 's/\//./'`.pid

It should be:
pidfile=/var/run/autofs`echo $mnt | sed 's/\//./g'`.pid

as $mnt might contain multiple slashes.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-04-16 23:34:43 UTC
This was changed a while ago, but I guess I never bumped the revision number up
for autofs.  I have done this now.  Sorry for that.