autofs-5.0.9 - fix fix master map type check From: Ian Kent The map type is of the form [,] but the master map type check for the old style map syntax wasn't allowing for to be given (see commit 7c104167). When fixing this an incorrect length was accidently used when checking for the "yp" map type which causes it to never match. --- CHANGELOG | 1 + daemon/lookup.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 212501c..2e80139 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -17,6 +17,7 @@ - update man page autofs(8) for systemd. - dont pass sloppy option for other than nfs mounts. - make service want network-online. +- fix fix master map type check. 28/03/2014 autofs-5.0.9 ======================= diff --git a/daemon/lookup.c b/daemon/lookup.c index 7d7da1c..f0faf37 100644 --- a/daemon/lookup.c +++ b/daemon/lookup.c @@ -194,8 +194,8 @@ int lookup_nss_read_master(struct master *master, time_t age) memset(source, 0, 10); if ((!strncmp(name, "file", 4) && (name[4] == ',' || name[4] == ':')) || - (!strncmp(name, "yp", 3) && - (name[3] == ',' || name[3] == ':')) || + (!strncmp(name, "yp", 2) && + (name[2] == ',' || name[2] == ':')) || (!strncmp(name, "nis", 3) && (name[3] == ',' || name[3] == ':')) || (!strncmp(name, "nisplus", 7) &&