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:
parent
26208d3e96
commit
d44c2ef0b7
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user