autofs-5.0.5 - dont bind nfs mount if nobind is set

From: Ian Kent <ikent@redhat.com>

If the pseudo option "nobind" is set don't attempt a bind mount
if the file system is local.
---

 modules/mount_nfs.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


Index: autofs-5.0.6/modules/mount_nfs.c
===================================================================
--- autofs-5.0.6.orig/modules/mount_nfs.c
+++ autofs-5.0.6/modules/mount_nfs.c
@@ -201,8 +201,7 @@ int mount_mount(struct autofs_point *ap,
 			port_opt = strstr(nfsoptions, "port=");
 
 		/* Port option specified, don't try to bind */
-		if (!(nosymlink || nobind) &&
-		    !port_opt && this->proximity == PROXIMITY_LOCAL) {
+		if (!nosymlink && !port_opt && this->proximity == PROXIMITY_LOCAL) {
 			/* Local host -- do a "bind" */
 			const char *bind_options = ro ? "ro" : "";
 
