mount.nfs: make nfs_{nfs,mount}_proto set errno on error
authorJeff Layton <jlayton@redhat.com>
Fri, 12 Feb 2010 19:35:31 +0000 (14:35 -0500)
committerSteve Dickson <steved@redhat.com>
Fri, 12 Feb 2010 19:35:31 +0000 (14:35 -0500)
commit33203b53ac5f43eef995c100299e45bd441c67d8
tree6a6f8ef13690a0249ccddba8ae1b3c2372fd517f
parent1d4a0cb29ee88257b42d18a22388e1b23cf13bcc
mount.nfs: make nfs_{nfs,mount}_proto set errno on error

Have nfs_nfs_proto and nfs_mount_proto set errno to EPROTONOSUPPORT on
error. This helps default_value to display sane warning messages.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/network.c