mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libsmbconf: add existence check for service to smbconf_get_share().
Michael
(This used to be commit 26208d3e96
)
This commit is contained in:
parent
fbd2c552ea
commit
94ef924800
@ -964,6 +964,10 @@ WERROR smbconf_get_share(struct smbconf_ctx *ctx,
|
||||
const char *servicename, uint32_t *num_params,
|
||||
char ***param_names, char ***param_values)
|
||||
{
|
||||
if (!smbconf_share_exists(ctx, servicename)) {
|
||||
return WERR_NO_SUCH_SERVICE;
|
||||
}
|
||||
|
||||
return smbconf_reg_get_share(ctx, mem_ctx, servicename, num_params,
|
||||
param_names, param_values);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user