summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshare/nfs/libshare_nfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/lib/libshare/nfs/libshare_nfs.c')
-rw-r--r--usr/src/lib/libshare/nfs/libshare_nfs.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/lib/libshare/nfs/libshare_nfs.c b/usr/src/lib/libshare/nfs/libshare_nfs.c
index 8ddc74e1a0..7d4ef12210 100644
--- a/usr/src/lib/libshare/nfs/libshare_nfs.c
+++ b/usr/src/lib/libshare/nfs/libshare_nfs.c
@@ -1603,8 +1603,13 @@ public_exists(sa_handle_t handle, sa_share_t skipshare)
{
sa_group_t group = NULL;
+ /*
+ * If we don't have a handle, we can only do syntax check. We
+ * can't check against other shares so we assume OK and will
+ * catch the problem only when we actually try to apply it.
+ */
if (handle == NULL)
- return (SA_SYSTEM_ERR);
+ return (SA_OK);
if (skipshare != NULL) {
group = sa_get_parent_group(skipshare);