summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-10-22 10:31:06 -0700
committerJeremy Allison <jra@samba.org>2010-10-22 18:15:48 +0000
commita8b95686a7bde3f96f141b6938e24e101567ef54 (patch)
treec5bdfbfc2fb1acb0c211d9941bc0fd321b3a6d9a /source3/registry
parent3e79cd6856e5c76cc39ad2be68b40534a524cecd (diff)
downloadsamba-a8b95686a7bde3f96f141b6938e24e101567ef54.tar.gz
samba-a8b95686a7bde3f96f141b6938e24e101567ef54.tar.bz2
samba-a8b95686a7bde3f96f141b6938e24e101567ef54.zip
Wrap security_token_has_privilege() with a check for lp_enable_privileges(). Needed
to maintain compatibility with smb.conf manpage. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 22 18:15:48 UTC 2010 on sn-devel-104
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_backend_smbconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/registry/reg_backend_smbconf.c b/source3/registry/reg_backend_smbconf.c
index b96c73b47b..f638223427 100644
--- a/source3/registry/reg_backend_smbconf.c
+++ b/source3/registry/reg_backend_smbconf.c
@@ -60,7 +60,7 @@ static bool smbconf_reg_access_check(const char *keyname, uint32 requested,
uint32 *granted,
const struct security_token *token)
{
- if (!security_token_has_privilege(token, SEC_PRIV_DISK_OPERATOR)) {
+ if (!s3_security_token_has_privilege(token, SEC_PRIV_DISK_OPERATOR)) {
return False;
}