Blame SOURCES/autofs-5.1.0-fix-copy-and-paste-error-in-dup_defaults_entry.patch

6bbd11
autofs-5.1.0 - fix copy and paste error in dup_defaults_entry()
6bbd11
6bbd11
From: Ian Kent <ikent@redhat.com>
6bbd11
6bbd11
6bbd11
---
6bbd11
 CHANGELOG           |    1 +
6bbd11
 modules/parse_amd.c |    2 +-
6bbd11
 2 files changed, 2 insertions(+), 1 deletion(-)
6bbd11
6bbd11
--- autofs-5.0.7.orig/CHANGELOG
6bbd11
+++ autofs-5.0.7/CHANGELOG
6bbd11
@@ -143,6 +143,7 @@
6bbd11
 - check host macro is set before use.
6bbd11
 - check options length before use in parse_amd.c.
6bbd11
 - fix some out of order evaluations in parse_amd.c.
6bbd11
+- fix copy and paste error in dup_defaults_entry().
6bbd11
 
6bbd11
 25/07/2012 autofs-5.0.7
6bbd11
 =======================
6bbd11
--- autofs-5.0.7.orig/modules/parse_amd.c
6bbd11
+++ autofs-5.0.7/modules/parse_amd.c
6bbd11
@@ -1631,7 +1631,7 @@ static struct amd_entry *dup_defaults_en
6bbd11
 			entry->rfs = tmp;
6bbd11
 	}
6bbd11
 
6bbd11
-	if (defaults->rhost && *defaults->rfs) {
6bbd11
+	if (defaults->rhost && *defaults->rhost) {
6bbd11
 		tmp = strdup(defaults->rhost);
6bbd11
 		if (tmp)
6bbd11
 			entry->rhost = tmp;