Blame SOURCES/autofs-5.1.0-fix-fix-master-map-type-check.patch

6bbd11
autofs-5.1.0 - fix fix master map type check
6bbd11
6bbd11
From: Ian Kent <ikent@redhat.com>
6bbd11
6bbd11
The map type is of the form <type>[,<format>] but the master map type
6bbd11
check for the old style map syntax wasn't allowing for <format> to be
6bbd11
given (see commit 7c104167).
6bbd11
6bbd11
When fixing this an incorrect length was accidently used when checking
6bbd11
for the "yp" map type which causes it to never match.
6bbd11
---
6bbd11
 CHANGELOG       |    1 +
6bbd11
 daemon/lookup.c |    4 ++--
6bbd11
 2 files changed, 3 insertions(+), 2 deletions(-)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -156,6 +156,7 @@
6bbd11
 - ignore multiple commas in options strings.
6bbd11
 - clarify multiple mounts description.
6bbd11
 - update man page autofs(8) for systemd.
6bbd11
+- fix fix master map type check.
6bbd11
 
6bbd11
 25/07/2012 autofs-5.0.7
6bbd11
 =======================
6bbd11
--- autofs-5.0.7.orig/daemon/lookup.c
6bbd11
+++ autofs-5.0.7/daemon/lookup.c
6bbd11
@@ -233,8 +233,8 @@ int lookup_nss_read_master(struct master
6bbd11
 			memset(source, 0, 10);
6bbd11
 			if ((!strncmp(name, "file", 4) &&
6bbd11
 				 (name[4] == ',' || name[4] == ':')) ||
6bbd11
-			    (!strncmp(name, "yp", 3) &&
6bbd11
-				 (name[3] == ',' || name[3] == ':')) ||
6bbd11
+			    (!strncmp(name, "yp", 2) &&
6bbd11
+				 (name[2] == ',' || name[2] == ':')) ||
6bbd11
 			    (!strncmp(name, "nis", 3) &&
6bbd11
 				 (name[3] == ',' || name[3] == ':')) ||
6bbd11
 			    (!strncmp(name, "nisplus", 7) &&