Red Hat Bugzilla – Bug 143206
/etc/init.d/autofs broken in LANG is not C
Last modified: 2017-04-05 03:41:46 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040922
Description of problem:
When /etc/init.d/autofs starts up my automount daemons, the --timeout=600 in /etc/auto.master is being ignored. I believe the problem is line 168:
if echo "$options" | grep -qE -- '\B-(t\b|-timeout\b=)' ;
If I set "options" to "--timeout=600", this returns false. Thanks to a similar bugzilla report, I tracked it down to the LANG variable. If I set LANG=C before I run /etc/init.d/autofs, everything works as expected. If I leave it unset (default is en_US.UTF8), autofs doesn't get the correct --timeout value.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add "/fubar /etc/auto.fubar --timeout=600" to /etc/auto.master
2. start autofs: /etc/init.d/autofs start
3. ps -elf | grep auto.home
Actual Results: [...] /usr/sbin/automount --timeout=60 /fubar file /etc/auto.fubar
Expected Results: [...] /usr/sbin/automount --timeout=600 /fubar file /etc/auto.fubar
Thanks for the bug report. We already have a fix for this pending. I'll update
this bug when it hits rawhide.
autofs-4.1.3-107 was built into rawhide, and contains a fix for this issue. fc3
has a build pending.
*** Bug 146754 has been marked as a duplicate of this bug. ***
autofs 4.1.3-114 is in fc3 updates. Closing as errata, please reopen if still an