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

306fa1
autofs-5.1.3 - fix incorrect check in validate_program_options()
306fa1
306fa1
From: Ian Kent <raven@themaw.net>
306fa1
306fa1
Fix incorrectly checking *entry->fs when entry->fs is NULL in
306fa1
validate_program_options().
306fa1
306fa1
Signed-off-by: Ian Kent <raven@themaw.net>
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
@@ -284,6 +284,7 @@
306fa1
 - add amd mount type program mount support.
306fa1
 - fix memory leak in umount_amd_ext_mount().
306fa1
 - fix strerror_r() parameter declaration in do program_mount().
306fa1
+- fix incorrect check in validate_program_options().
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
@@ -1477,7 +1477,7 @@ static unsigned int validate_program_opt
306fa1
 		return 0;
306fa1
 	}
306fa1
 
306fa1
-	if (!entry->fs && !*entry->fs) {
306fa1
+	if (!entry->fs || !*entry->fs) {
306fa1
 		error(logopt, MODPREFIX
306fa1
 		    "%s: ${fs} must be used as the mount point but is not set",
306fa1
 		    entry->type);