]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Make sure all protocol version options are checked in check_vers()
authorSteve Dickson <steved@redhat.com>
Fri, 9 Oct 2009 17:22:27 +0000 (13:22 -0400)
committerSteve Dickson <steved@redhat.com>
Fri, 9 Oct 2009 17:22:27 +0000 (13:22 -0400)
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/configfile.c

index b0aa6f05265bde7ba08bd1ae0d437d5d517aa2b1..d3285f8bf0cac5f9ebcdc2cbfd7609d163cdf4bf 100644 (file)
@@ -190,9 +190,7 @@ int inline check_vers(char *mopt, char *field)
 {
        int i;
 
-       if (strncmp("mountvers", field, strlen("mountvers") != 0 &&
-                       (strcasecmp(field, "nfsvers") == 0 || 
-                               strcasecmp(field, "vers") == 0))) {
+       if (strncmp("mountvers", field, strlen("mountvers")) != 0) {
                for (i=0; versions[i]; i++) 
                        if (strcasestr(mopt, versions[i]) != NULL)
                                return 1;