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

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