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

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