|
Description
|
In initprotofromdefault(), line 2361:
protoset = sa_create_protocol_properties("nfs");
if (protoset != NULL) {
nfs = fopen(NFSADMIN, "r");
if (nfs != NULL) {
while (ret == SA_OK &&
fgets(buff, sizeof (buff), nfs) != NULL) {
switch (buff[0]) {
case '\n':
case '#':
/* skip */
break;
default:
name = buff;
buff[strlen(buff) - 1] = '\0';
value = strchr(name, '=');
if (value != NULL) {
*value++ = '\0';
ret = extractprop(name, value);
}
}
}
(void) fclose(nfs);
} else {
(void) printf(gettext("Problem with file: %s\n"),
NFSADMIN);
ret = SA_SYSTEM_ERR;
}
} else {
ret = SA_NO_MEMORY;
}
return (ret);
If the fopen(3C) of the NFS configuration file fails, this function fails. While that failure makes sense, instead of failing to load the libshare_nfs plugin, the nfs_init() function should load the default values from the proto_options table instead of failing to load the plugin.
|