6006dc
diff -up nfs-utils-1.3.0/utils/mount/configfile.c.orig nfs-utils-1.3.0/utils/mount/configfile.c
6006dc
--- nfs-utils-1.3.0/utils/mount/configfile.c.orig	2017-10-05 11:44:08.775077208 -0400
6006dc
+++ nfs-utils-1.3.0/utils/mount/configfile.c	2017-10-05 11:49:50.811349443 -0400
6006dc
@@ -70,6 +70,7 @@ struct mnt_alias {
6006dc
 	{"background", "bg", MNT_NOARG},
6006dc
 	{"foreground", "fg", MNT_NOARG},
6006dc
 	{"sloppy", "sloppy", MNT_NOARG},
6006dc
+	{"nfsvers", "vers", MNT_UNSET},
6006dc
 };
6006dc
 int mnt_alias_sz = (sizeof(mnt_alias_tab)/sizeof(mnt_alias_tab[0]));
6006dc
 
6006dc
@@ -296,20 +297,21 @@ conf_parse_mntopts(char *section, char *
6006dc
 
6006dc
 	list = conf_get_tag_list(section, arg);
6006dc
 	TAILQ_FOREACH(node, &list->fields, link) {
6006dc
+		/* check first if this is an alias for another option */
6006dc
+		field = mountopts_alias(node->field, &argtype);
6006dc
 		/*
6006dc
 		 * Do not overwrite options if already exists 
6006dc
 		 */
6006dc
-		snprintf(buf, BUFSIZ, "%s=", node->field);
6006dc
+		snprintf(buf, BUFSIZ, "%s=", field);
6006dc
 		if (opts && strcasestr(opts, buf) != NULL)
6006dc
 			continue;
6006dc
 
6006dc
-		if (lookup_entry(node->field) != NULL)
6006dc
+		if (lookup_entry(field) != NULL)
6006dc
 			continue;
6006dc
 		buf[0] = '\0';
6006dc
 		value = conf_get_section(section, arg, node->field);
6006dc
 		if (value == NULL)
6006dc
 			continue;
6006dc
-		field = mountopts_alias(node->field, &argtype);
6006dc
 		if (strcasecmp(value, "false") == 0) {
6006dc
 			if (argtype != MNT_NOARG)
6006dc
 				snprintf(buf, BUFSIZ, "no%s", field);