mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Revert "ntvfs_unixuid: No wbc_context required"
This reverts commit f35f88d741
.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
279ee16254
commit
d5e88c280c
@ -33,6 +33,7 @@
|
||||
NTSTATUS ntvfs_unixuid_init(void);
|
||||
|
||||
struct unixuid_private {
|
||||
struct wbc_context *wbc_ctx;
|
||||
struct security_unix_token *last_sec_ctx;
|
||||
struct security_token *last_token;
|
||||
};
|
||||
@ -240,6 +241,13 @@ static NTSTATUS unixuid_connect(struct ntvfs_module_context *ntvfs,
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
priv->wbc_ctx = wbc_init(priv, ntvfs->ctx->msg_ctx,
|
||||
ntvfs->ctx->event_ctx);
|
||||
if (priv->wbc_ctx == NULL) {
|
||||
talloc_free(priv);
|
||||
return NT_STATUS_INTERNAL_ERROR;
|
||||
}
|
||||
|
||||
priv->last_sec_ctx = NULL;
|
||||
priv->last_token = NULL;
|
||||
ntvfs->private_data = priv;
|
||||
|
Loading…
Reference in New Issue
Block a user