Scott McDermott wrote:
> 
> That would take too long at large sites.  How about
> 
> +               if [ `ypcat -k $map 2>/dev/null | head | wc -l` -eq 0 ] ; then
> +                   map=`echo "$map" | sed -e 's/^auto_/auto./'`
> +               fi
> 
> besides what about when auto_home is just "+auto.home" ?
> 

Handling + in auto_master would be nice.  The + as an entry in a map is
utterly and fundamentally broken (a map is an associative lookup, d****
it!) although the same (and better) functionality can be had with
"multi" maps.  Unfortunately, I don't know of any sane way to specify
multi maps in the auto_master format; it's probably time to try to
recommend using something like /etc/autofstab with auto_master as a
compatibility fallback.

        -hpa

Reply via email to