X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmount%2Fconfigfile.c;h=5cff00928b637a37e3c71a32b9e60d3b59594e9e;hp=1dd4159a74b97d1ef48a762c7c9143cb07216f82;hb=8f9493d13f884a62d7581326c1925a8171b3b0bd;hpb=7b0e4faaf3169c69828d3f7769ed8ce9142e100b diff --git a/utils/mount/configfile.c b/utils/mount/configfile.c index 1dd4159..5cff009 100644 --- a/utils/mount/configfile.c +++ b/utils/mount/configfile.c @@ -222,6 +222,8 @@ int inline check_vers(char *mopt, char *field) unsigned long config_default_vers; unsigned long config_default_proto; +extern sa_family_t config_default_family; + /* * Check to see if a default value is being set. * If so, set the appropriate global value which will @@ -243,6 +245,10 @@ int inline default_value(char *mopt) xlog_warn("Unable to set default protocol : %s", strerror(errno)); } + if (!nfs_nfs_proto_family(options, &config_default_family)) { + xlog_warn("Unable to set default family : %s", + strerror(errno)); + } } else { xlog_warn("Unable to alloc memory for default protocol"); }