summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2004-01-15 02:06:04 (GMT)
committerH. Peter Anvin <hpa@zytor.com>2004-01-15 02:06:04 (GMT)
commitb3a603c4db3fb5f3dfaf66f646475f52b2145b77 (patch)
treea90776a7d4f19f42e8c8e19a663c46f32d909152
parentbf2fa35a370f7116f93c7e9fd9ab45ea3cbedec9 (diff)
downloadautofs3-b3a603c4db3fb5f3dfaf66f646475f52b2145b77.zip
autofs3-b3a603c4db3fb5f3dfaf66f646475f52b2145b77.tar.gz
autofs3-b3a603c4db3fb5f3dfaf66f646475f52b2145b77.tar.bz2
autofs3-b3a603c4db3fb5f3dfaf66f646475f52b2145b77.tar.xz
Fix some RedHat braindamage
-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:`