1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

libsmbconf: add existence check for service to smbconf_delete_share().

Michael
This commit is contained in:
Michael Adam 2008-03-20 11:54:30 +01:00
parent 26208d3e96
commit d44c2ef0b7

View File

@ -977,6 +977,10 @@ WERROR smbconf_get_share(struct smbconf_ctx *ctx,
*/
WERROR smbconf_delete_share(struct smbconf_ctx *ctx, const char *servicename)
{
if (!smbconf_share_exists(ctx, servicename)) {
return WERR_NO_SUCH_SERVICE;
}
return smbconf_reg_delete_share(ctx, servicename);
}