mirror of
https://github.com/samba-team/samba.git
synced 2025-02-01 05:47:28 +03:00
mdssvc: fix kMDScopeArray parsing
In macOS Ventura marshalling of kMDScopeArray in the "openQueryWithParams" request has changed from string: kMDScopeArray sl_array_t(#1): { string: /foo/bar } to: string: kMDScopeArray sl_array_t(#1): { sl_array_t(#1): { string: /foo/bar } } With this patch we check both encodings. Bug fixed according to user feedback. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15299 RN: Spotlight doesn't work with latest macOS Ventura Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 1dd0cd2f4e644ad43b0e7ee2aaae19799e859585)
This commit is contained in:
parent
3a5190b80b
commit
8816c1b6e3
@ -919,6 +919,12 @@ static bool slrpc_open_query(struct mds_ctx *mds_ctx,
|
||||
|
||||
scope = dalloc_get(path_scope, "char *", 0);
|
||||
if (scope == NULL) {
|
||||
scope = dalloc_get(path_scope,
|
||||
"DALLOC_CTX", 0,
|
||||
"char *", 0);
|
||||
}
|
||||
if (scope == NULL) {
|
||||
DBG_ERR("Failed to parse kMDScopeArray\n");
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user