diff options
author | Steve Dickson <steved@redhat.com> | 2009-10-09 13:22:27 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-10-09 13:22:27 -0400 |
commit | f87ae8235ae6042c0e514ba03e4eee7782d5bc6e (patch) | |
tree | bde7ed4cda5782861b36bd701b785141be430f1f /utils/mount/configfile.c | |
parent | f312676ca61f826efa5d0eb39433c5aa075711ab (diff) | |
download | nfs-utils-f87ae8235ae6042c0e514ba03e4eee7782d5bc6e.tar.gz nfs-utils-f87ae8235ae6042c0e514ba03e4eee7782d5bc6e.tar.xz nfs-utils-f87ae8235ae6042c0e514ba03e4eee7782d5bc6e.zip |
Make sure all protocol version options are checked in check_vers()
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount/configfile.c')
-rw-r--r-- | utils/mount/configfile.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/utils/mount/configfile.c b/utils/mount/configfile.c index b0aa6f0..d3285f8 100644 --- a/utils/mount/configfile.c +++ b/utils/mount/configfile.c @@ -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; |