From 660c8537085b3e66bff7da2953da9a98429c9635 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 7 Jan 2014 14:15:34 -0500 Subject: mount.nfs: Don't silently ignore invalid protocol versions. Signed-off-by: Steve Dickson --- utils/mount/network.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/mount/network.c b/utils/mount/network.c index 2853d00..2fdd2c0 100644 --- a/utils/mount/network.c +++ b/utils/mount/network.c @@ -1245,6 +1245,8 @@ nfs_nfs_version(struct mount_options *options, unsigned long *version) *version = tmp; return 1; } + nfs_error(_("%s: parsing error on 'vers=' option\n"), + progname); return 0; case PO_NOT_FOUND: nfs_error(_("%s: parsing error on 'vers=' option\n"), @@ -1262,6 +1264,8 @@ nfs_nfs_version(struct mount_options *options, unsigned long *version) *version = tmp; return 1; } + nfs_error(_("%s: parsing error on 'nfsvers=' option\n"), + progname); return 0; case PO_NOT_FOUND: nfs_error(_("%s: parsing error on 'nfsvers=' option\n"), -- cgit