Hello,

If you have entries in your auto.master such as:

/home/u
/u

then the second will be perceived as a dup of the first, due to an in-exact
regexp.  Attached is a fix which checks for a proper word boundary.

Cheers,

Jeff


--- autofs-4.1.1/samples/rc.autofs.in.init-redhat-only  2004-01-29 11:01:22.000000000 
-0500
+++ autofs-4.1.1/samples/rc.autofs.in   2004-03-19 17:41:35.000000000 -0500
@@ -162,7 +162,7 @@
            fi
            if [ ! -z "$dir" -a ! -z "$map" \
                        -a x`echo "$map" | cut -c1` != 'x-' \
-                       -a "`echo "$knownmaps" | grep $dir/`" = "" ]
+                       -a "`echo "$knownmaps" | grep '\<'$dir/`" = "" ]
            then
                # If the options include a -t or --timeout or a -g or --ghost
                # parameter, then pull those particular options out.

_______________________________________________
autofs mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to