aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--samples/rc.autofs.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/samples/rc.autofs.in b/samples/rc.autofs.in
index 72c4a33..92716a0 100644
--- a/samples/rc.autofs.in
+++ b/samples/rc.autofs.in
@@ -190,8 +190,9 @@ function getmounts()
map=
else
maptype=yp
- map=`basename $map | sed -e s/^auto_home/auto.home/ -e s/^auto_mnt/auto.mnt/`
- fi
+ # Historical braindamage, use explicit yp: to override
+ map=`basename $map | sed -e s/^auto_/auto./`
+ fi
fi
map=`echo $map | cut -f2- -d:`