diff options
author | Gerald Carter <jerry@samba.org> | 2005-01-25 23:32:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:11 -0500 |
commit | 33b789f321e2e00f460a232f90ac751433ac9e8d (patch) | |
tree | 7d9b51394f462ebb1dac10929f1454d610060b00 /source3/lib | |
parent | a548e710d8fb9e9a7b0fb0e666dac809bf10cc34 (diff) | |
download | samba-33b789f321e2e00f460a232f90ac751433ac9e8d.tar.gz samba-33b789f321e2e00f460a232f90ac751433ac9e8d.tar.bz2 samba-33b789f321e2e00f460a232f90ac751433ac9e8d.zip |
r4995: fail set_privileges() if 'enable privileges = no' to prevent confused admins who never read what I write :-)
(This used to be commit 1d7a636e0e7f8a0bc3d3ae04b40f79db7f08d619)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/privileges.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c index 628b2dd325..ea81f9fce0 100644 --- a/source3/lib/privileges.c +++ b/source3/lib/privileges.c @@ -228,6 +228,9 @@ static BOOL set_privileges( const DOM_SID *sid, SE_PRIV *mask ) fstring keystr; TDB_DATA key, data; + if ( !lp_enable_privileges() ) + return False; + if ( !tdb ) return False; |