mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
Remove the global "struct cm_cred_struct" and associated calls, make
callers pass in a struct user_auth_info * instead. This commit causes smbc_set_credentials() to print out a message telling callers to use smbc_set_credentials_with_fallback() instead, as smbc_set_credentials() has a broken API (no SMBCCTX * pointer). No more global variables used in the connection manager API for client dfs calls. Jeremy.
This commit is contained in:
@ -257,8 +257,9 @@ SMBC_fstat_ctx(SMBCCTX *context,
|
||||
}
|
||||
|
||||
/*d_printf(">>>fstat: resolving %s\n", path);*/
|
||||
if (!cli_resolve_path(frame, "", file->srv->cli, path,
|
||||
&targetcli, &targetpath)) {
|
||||
if (!cli_resolve_path(frame, "", context->internal->auth_info,
|
||||
file->srv->cli, path,
|
||||
&targetcli, &targetpath)) {
|
||||
d_printf("Could not resolve %s\n", path);
|
||||
TALLOC_FREE(frame);
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user