summaryrefslogtreecommitdiff
path: root/source3/smbd/sec_ctx.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2012-04-04 14:53:10 -0700
committerJeremy Allison <jra@samba.org>2012-04-04 14:58:42 -0700
commitf042de2f346c98a852957cdbb09a7f8ac871b69c (patch)
tree5e129071915bdd6a9ce096169fd2c02920a5c0dd /source3/smbd/sec_ctx.c
parentd0fbe16a6b1c4a98279d310a414582bba29f8a3a (diff)
downloadsamba-f042de2f346c98a852957cdbb09a7f8ac871b69c.tar.gz
samba-f042de2f346c98a852957cdbb09a7f8ac871b69c.tar.bz2
samba-f042de2f346c98a852957cdbb09a7f8ac871b69c.zip
First part of fix for bug 8837 - smbd crashes when deleting directory and veto files are enabled.
Add some const to the sec_ctx code.
Diffstat (limited to 'source3/smbd/sec_ctx.c')
-rw-r--r--source3/smbd/sec_ctx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sec_ctx.c b/source3/smbd/sec_ctx.c
index 99592815e3..d83dbd0cb6 100644
--- a/source3/smbd/sec_ctx.c
+++ b/source3/smbd/sec_ctx.c
@@ -305,7 +305,7 @@ static void set_unix_security_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *grou
Set the current security context to a given user.
****************************************************************************/
-void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, struct security_token *token)
+void set_sec_ctx(uid_t uid, gid_t gid, int ngroups, gid_t *groups, const struct security_token *token)
{
struct sec_ctx *ctx_p = &sec_ctx_stack[sec_ctx_stack_ndx];