summaryrefslogtreecommitdiff
path: root/source/param
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-10-07 17:58:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:13 -0500
commitd100bfffe2a503b8820889faedc6ed57100ca7af (patch)
treebb3f62c7dae399533153b0971a1d5f8a7ff0e6fe /source/param
parent2b3392df1024539d326fb0f560ab2b0a29124a06 (diff)
downloadsamba-d100bfffe2a503b8820889faedc6ed57100ca7af.tar.gz
r25564: Pass sharename to delete_share_security()
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index d7e15226e99..84e3658e844 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -5517,7 +5517,7 @@ int load_usershare_shares(void)
/* Remove from the share ACL db. */
DEBUG(10,("load_usershare_shares: Removing deleted usershare %s\n",
lp_servicename(iService) ));
- delete_share_security(snum2params_static(iService));
+ delete_share_security(lp_servicename(iService));
free_service_byindex(iService);
}
}
@@ -5749,7 +5749,7 @@ int lp_servicenumber(const char *pszServiceName)
if (!usershare_exists(iService, &last_mod)) {
/* Remove the share security tdb entry for it. */
- delete_share_security(snum2params_static(iService));
+ delete_share_security(lp_servicename(iService));
/* Remove it from the array. */
free_service_byindex(iService);
/* Doesn't exist anymore. */