git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
279ee16
)
Revert "ntvfs_unixuid: No wbc_context required"
author
Volker Lendecke
<vl@samba.org>
Tue, 18 Feb 2014 08:49:21 +0000
(09:49 +0100)
committer
Volker Lendecke
<vl@samba.org>
Tue, 18 Feb 2014 09:28:44 +0000
(10:28 +0100)
This reverts commit
f35f88d741f1f896268649238d4ddbda4abb1585
.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/ntvfs/unixuid/vfs_unixuid.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/unixuid/vfs_unixuid.c
b/source4/ntvfs/unixuid/vfs_unixuid.c
index 88f3b8b6f34a84f4ede29ef5eff1f075b6829f1c..97a59591b7d625ba6ac7ca9b94b83b7169222912 100644
(file)
--- a/
source4/ntvfs/unixuid/vfs_unixuid.c
+++ b/
source4/ntvfs/unixuid/vfs_unixuid.c
@@
-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;