Blame SOURCES/autofs-5.1.4-fix-error-return-in-do_nfs_mount.patch

135b98
autofs-5.1.4 - fix error return in do_nfs_mount()
135b98
135b98
From: Ian Kent <raven@themaw.net>
135b98
135b98
Fix incorrect error return in modules/parse_amd.c:do_nfs_mount().
135b98
---
135b98
 CHANGELOG           |    1 +
135b98
 modules/parse_amd.c |    2 +-
135b98
 2 files changed, 2 insertions(+), 1 deletion(-)
135b98
135b98
diff --git a/CHANGELOG b/CHANGELOG
135b98
index 756ef927..d0cfa19b 100644
135b98
--- a/CHANGELOG
135b98
+++ b/CHANGELOG
135b98
@@ -6,6 +6,7 @@ xx/xx/2018 autofs-5.1.5
135b98
 - dont use array for path when not necessary.
135b98
 - fix prefix option handling in expand_entry().
135b98
 - fix sublink option not set from defaults.
135b98
+- fix error return in do_nfs_mount().
135b98
 
135b98
 19/12/2017 autofs-5.1.4
135b98
 - fix spec file url.
135b98
diff --git a/modules/parse_amd.c b/modules/parse_amd.c
135b98
index 1c962fff..2a5d9a30 100644
135b98
--- a/modules/parse_amd.c
135b98
+++ b/modules/parse_amd.c
135b98
@@ -1099,7 +1099,7 @@ static int do_nfs_mount(struct autofs_point *ap, const char *name,
135b98
 	if (strlen(entry->rhost) + strlen(entry->rfs) + 1 > PATH_MAX) {
135b98
 		error(ap->logopt, MODPREFIX
135b98
 		     "error: rhost + rfs options length is too long");
135b98
-		return 0;
135b98
+		return 1;
135b98
 	}
135b98
 
135b98
 	strcpy(target, entry->rhost);