Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89718 - autofs init fails to start due to misparsed nis maps
Summary: autofs init fails to start due to misparsed nis maps
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Network Filesystems
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-19 14:49 UTC by Jason Miller
Modified: 2005-04-25 14:07 UTC (History)
1 user (show)

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 Jason Miller 2005-04-19 14:49:37 UTC
I just upgraded from autofs-4.1.3-r2 to 4.1.3-r4 and autofs failed to start.  It complains about the -t option requiring a numeric argument for each of my nis mounts.  I tracked the problem down to my Sun NIS maps having some long options that, in the newer version, fail to parse properly in the getmounts function in /etc/init.d/autofs.  There is a ton of new code in there and I am far from a sed expert so I gave up at that point.  

My NIS auto.master is:

/proj auto.proj -rw,intr,proto=udp
/home auto.home -rw,intr,proto=udp
/esda auto.esda       -rw,intr,proto=udp
/vol auto.vol   -rw,intr,proto=udp
/net -hosts          -rw,intr,proto=udp
/dfs auto.dfs   -rw,intr,proto=udp
/u auto.u       -rw,intr,proto=udp
/- auto.direct  -rw,intr,proto=udp

automount line in nsswitch.conf:

automount:  files nis

/etc/autofs/auto.master:
# $Id: auto.master,v 1.1 2000/08/08 17:53:33 achim Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
/misc   /etc/autofs/auto.misc
#/home  /etc/autofs/auto.home

auto.misc is just comments.



Reproducible: Always
Steps to Reproduce:





Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11.2 i686)
=================================================================
System uname: 2.6.11.2 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.4.16
Python:             
dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4-r1,dev-lang/python-2.1.3-r1
[2.3.4 (#1, Feb 10 2005, 16:01:25)]
dev-lang/python:     2.2.3-r5, 2.3.4-r1, 2.1.3-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.6.3, 1.9.4, 1.7.9-r1, 1.5, 1.8.5-r3
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apm arts avi berkdb bitmap-fonts cdparanoia cdr crypt cups
curl dvd emboss encode esd fam fastcgi flac foomaticdb fortran freetds gb gdbm
gif gimpprint gnome gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 java jpeg
junit kde ldap libg++ libwww mad mikmod motif mozilla mp3 mpeg mysql ncurses nls
odbc ogg oggvorbis opengl oss pam pdflib perl plotutils png ppds python qt
quicktime readline samba sdl slang slp speex spell sse ssl svga tcltk tcpd
threads tiff truetype truetype-fonts type1-fonts usb vorbis xml xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-25 14:07:20 UTC
remove the leading '-' from your options.

leading '-' = option for autofs daemon
no leading '-' = option for mount call

I'd like to ignore all -foo stuff myself, but getopt parses:
'-rw,intr,proto' as a two strings of '-t' 'r,proto=udp'
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-25 14:07:49 UTC
just forgot to stick myself on the cc list
since i'm the maintainer of autofs, and not a part of net-fs.