changeset 13371:ac51c74a855d

1012 cifs-shares are also exported via nfs without being configured therefor Reviewed by: Bill Pijewski <wdp@joyent.com> Reviewed by: Gordon Ross <gwr@nexenta.com> Reviewed by: Robert Gordon <rbg@openrbg.com> Approved by: Albert Lee <trisk@nexenta.com>
author Richard Lowe <richlowe@richlowe.net>
date Tue, 10 May 2011 14:20:12 -0400
parents 8c04143bd318
children dd80b2e7fda4
files usr/src/cmd/dfs.cmds/sharemgr/commands.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/dfs.cmds/sharemgr/commands.c	Sat May 14 00:29:13 2011 -0400
+++ b/usr/src/cmd/dfs.cmds/sharemgr/commands.c	Tue May 10 14:20:12 2011 -0400
@@ -534,6 +534,10 @@
 {
 	sa_share_t share;
 
+	/* If the protocol isn't enabled for this group skip it */
+	if (!has_protocol(group, proto))
+		return;
+
 	for (share = sa_get_share(group, NULL);
 	    share != NULL;
 	    share = sa_get_next_share(share)) {