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

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