Blame SOURCES/autofs-5.1.3-fix-incorrect-check-in-validate_program_options.patch

304803
autofs-5.1.3 - fix incorrect check in validate_program_options()
304803
304803
From: Ian Kent <raven@themaw.net>
304803
304803
Fix incorrectly checking *entry->fs when entry->fs is NULL in
304803
validate_program_options().
304803
304803
Signed-off-by: Ian Kent <raven@themaw.net>
304803
---
304803
 CHANGELOG           |    1 +
304803
 modules/parse_amd.c |    2 +-
304803
 2 files changed, 2 insertions(+), 1 deletion(-)
304803
304803
--- autofs-5.0.7.orig/CHANGELOG
304803
+++ autofs-5.0.7/CHANGELOG
304803
@@ -284,6 +284,7 @@
304803
 - add amd mount type program mount support.
304803
 - fix memory leak in umount_amd_ext_mount().
304803
 - fix strerror_r() parameter declaration in do program_mount().
304803
+- fix incorrect check in validate_program_options().
304803
 
304803
 25/07/2012 autofs-5.0.7
304803
 =======================
304803
--- autofs-5.0.7.orig/modules/parse_amd.c
304803
+++ autofs-5.0.7/modules/parse_amd.c
304803
@@ -1477,7 +1477,7 @@ static unsigned int validate_program_opt
304803
 		return 0;
304803
 	}
304803
 
304803
-	if (!entry->fs && !*entry->fs) {
304803
+	if (!entry->fs || !*entry->fs) {
304803
 		error(logopt, MODPREFIX
304803
 		    "%s: ${fs} must be used as the mount point but is not set",
304803
 		    entry->type);