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

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