From: Ralph Boehme Date: Mon, 10 May 2021 09:07:27 +0000 (+0200) Subject: mdssvc: don't fail mds_add_result() if result is not found in CNID set X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=db5326a7f7a0ba877b0b21685fa825b2794dce81;p=kseeger%2Fsamba-autobuild-v4-14-test%2F.git mdssvc: don't fail mds_add_result() if result is not found in CNID set Just skip adding the result to the pending results set, don't return an error. Returning an error triggers an error at the MDSSVC RPC error which is NOT what we want here. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14740 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit 8847f46f75ac5c1a753a0e7da88c522be25ef681) --- diff --git a/source3/rpc_server/mdssvc/mdssvc.c b/source3/rpc_server/mdssvc/mdssvc.c index 1b0badc4851..60934fb63cc 100644 --- a/source3/rpc_server/mdssvc/mdssvc.c +++ b/source3/rpc_server/mdssvc/mdssvc.c @@ -567,7 +567,7 @@ bool mds_add_result(struct sl_query *slq, const char *path) sizeof(uint64_t), cnid_comp_fn); if (!found) { - return false; + return true; } }