<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>91104</bug_id>
          
          <creation_ts>2005-05-01 20:38 0000</creation_ts>
          <short_desc>autofs init script failing cause of daemon options</short_desc>
          <delta_ts>2008-02-05 12:38:18 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>wintered@gmail.com</reporter>
          <assigned_to>stefaan@gentoo.org</assigned_to>
          <cc>creideiki+gentoo-bugzilla@lysator.liu.se</cc>
    
    <cc>grimm26@mitsein.net</cc>
    
    <cc>nanouck@gmail.com</cc>
    
    <cc>net-fs@gentoo.org</cc>
    
    <cc>pocmatos@gmail.com</cc>
    
    <cc>robbat2@gentoo.org</cc>
    
    <cc>t35t0r@gmail.com</cc>

      

      
          <long_desc isprivate="0">
            <who>wintered@gmail.com</who>
            <bug_when>2005-05-01 20:38:55 0000</bug_when>
            <thetext>In version autofs-4.1.3-r4.ebuild, the init scripts were revamped, and now it is unable to parse my daemon options.

The daemon options are: &quot;-ro,soft,intr&quot;, the &apos;t&apos; in soft is intepreted as a timeout flag with options &quot;,intr&quot;.

Reproducible: Always
Steps to Reproduce:
1. Set daemon options to &quot;-ro,soft,intr&quot; for one of the mounts
2. Start the autofs init

Actual Results:  
 /home/usr/sbin/automount: option -t requires a numeric argument, got ,intr
 * Failure on /home



It seems to come down to the command getopt not doing the expected</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grimm26@mitsein.net</who>
            <bug_when>2005-05-03 15:10:40 0000</bug_when>
            <thetext>actually, --timeout 60 was added as a default setting in the /etc/conf.d/autofs file.  The new init script seems to not play well with options in the NIS map or flat file if you start them with a &apos;-&apos; like normal.  If you remove the dash, it works fine.  With the dash in place, it does weird things.  Example auto.master entry:
/apps/public auto.appspublic   -rw,intr,nobrowse

Command that /etc/init.d/autofs tries to run:
/usr/sbin/automount --timeout r,nobrowse --pid-file /var/run/autofs.apps.public.pid /apps/public yp auto.appspublic -rw,intr,nobrowse</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wintered@gmail.com</who>
            <bug_when>2005-05-06 01:41:29 0000</bug_when>
            <thetext>Yeah I noticed that removing the &apos;-&apos; makes it all work. I did a search and all example include this flag though. Maybe something to do with the some of the linux clients using autofs 3.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maxl@mcst.ru</who>
            <bug_when>2005-05-11 01:26:03 0000</bug_when>
            <thetext>so, why we can&apos;t use ${options/-/} in getopt_input as workaround?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wintered@gmail.com</who>
            <bug_when>2005-05-11 08:51:13 0000</bug_when>
            <thetext>sounds good to me, who has access to make the change?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>josemariafg@gmail.com</who>
            <bug_when>2005-09-01 09:16:31 0000</bug_when>
            <thetext>I&apos;m working on a research group where we have a mixure of Debian, Ubuntu and
Gentoo machines (among other) and we are using YP + autofs.

With autofs-4.1.3-r4 I have the same problem you have described in the bug. I
have modified /etc/init.d/autofs taking into account the advice from Max
Loparyev  (comment #3), and now it is working. The only modification was adding
options=${options/-/} to getmounts function, just inside the while loop.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pocmatos@gmail.com</who>
            <bug_when>2005-10-27 05:10:42 0000</bug_when>
            <thetext>I&apos;m having the same problem after emerging uD world. Strange how an app with
this bug is put in portage as stable. I&apos;m using NIS + NFS
Oh well, 
I have:
# ypcat -k auto.master
/home auto.home -t 60 -rw,soft,intr,nosuid,rsize=8192,wsize=8192
/net auto.net   -t 60 -rw,soft,intr,nosuid,rsize=8192,wsize=8192
# /etc/init.d/autofs stats
Configured Mount Points:
------------------------
/usr/sbin/automount --timeout ,intr,nosuid,rsize=8192,wsize=8192 --pid-file
/var/run/autofs.home.pid /home yp auto.home
-rw,soft,intr,nosuid,rsize=8192,wsize=8192
/usr/sbin/automount --timeout ,intr,nosuid,rsize=8192,wsize=8192 --pid-file
/var/run/autofs.net.pid /net yp auto.net -rw,soft,intr,nosuid,rsize=8192,wsize=8192

Active Mount Points:
--------------------

Which results in the numerical argument error to automount. The problem is I
cannot find a workaround to this. Someone said to &quot;use ${options/-/} in
getopt_input&quot; but I cannot find getopt_input. And I cannot remove &apos;-&apos; since I
don&apos;t know where is the config files. I tried to find everywhere in my maching
but couldn&apos;t find it. Occured to me it could be information provided by the
server in which case I cannot change. Any ideas?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2006-08-25 02:33:13 0000</bug_when>
            <thetext>*** Bug 145056 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>t35t0r@gmail.com</who>
            <bug_when>2007-01-03 19:10:09 0000</bug_when>
            <thetext>Someone please make a new revision and put it into portage asap! ${options/-/} in getopt_input works well.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stefaan@gentoo.org</who>
            <bug_when>2008-02-03 11:39:30 0000</bug_when>
            <thetext>New maintainer, net-fs/autofs-5.0.3-r1 is now in the tree.  </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stefaan@gentoo.org</who>
            <bug_when>2008-02-03 11:45:26 0000</bug_when>
            <thetext>Is there still a demand for this?  Or can we all just as well upgrade to autofs-5 (which I guess doesn&apos;t have this problem, as the init script is, again :), completely new)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>grimm26@mitsein.net</who>
            <bug_when>2008-02-03 21:47:57 0000</bug_when>
            <thetext>It is a super simple fix, so I don&apos;t see why it can&apos;t be done.  It is sad that this languished for so long.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>wintered@gmail.com</who>
            <bug_when>2008-02-04 07:48:17 0000</bug_when>
            <thetext>(In reply to comment #11)
&gt; It is a super simple fix, so I don&apos;t see why it can&apos;t be done.  It is sad that
&gt; this languished for so long.

Sad is probably not the word I would use :)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>stefaan@gentoo.org</who>
            <bug_when>2008-02-05 12:38:18 0000</bug_when>
            <thetext>(In reply to comment #12)
&gt; Sad is probably not the word I would use :)

You are always welcome to spend some of your own free time at fixing bugs, becoming a gentoo developer is an easy enough process...

Fixed in net-fs/autofs-4.1.3-r9
</thetext>
          </long_desc>
      
    </bug>

</bugzilla>