1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Updated error message text and reduced its debug level

Previously, "net rpc share add|remove" commands failed if no
"add|delete share command" parameter was set in smb.conf. However,
the error was only logged at level 10 and not very clear.
This patch updates the error message text and sets the log level of this
error to 1 to make it more obvious what is missing.

Signed-off-by: Marc Muehlfeld <mmuehlfeld@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Marc Muehlfeld 2017-10-11 09:49:45 +02:00 committed by Jeremy Allison
parent 2717263c14
commit 36cbb4ad49

View File

@ -1984,7 +1984,7 @@ WERROR _srvsvc_NetShareAdd(struct pipes_struct *p,
return WERR_ACCESS_DENIED;
if (!lp_add_share_command(talloc_tos()) || !*lp_add_share_command(talloc_tos())) {
DEBUG(10,("_srvsvc_NetShareAdd: No add share command\n"));
DBG_WARNING("_srvsvc_NetShareAdd: No \"add share command\" parameter set in smb.conf.\n");
return WERR_ACCESS_DENIED;
}
@ -2196,7 +2196,7 @@ WERROR _srvsvc_NetShareDel(struct pipes_struct *p,
return WERR_ACCESS_DENIED;
if (!lp_delete_share_command(talloc_tos()) || !*lp_delete_share_command(talloc_tos())) {
DEBUG(10,("_srvsvc_NetShareDel: No delete share command\n"));
DBG_WARNING("_srvsvc_NetShareDel: No \"delete share command\" parameter set in smb.conf.\n");
return WERR_ACCESS_DENIED;
}