svn commit: samba r5436 - in branches/SAMBA_3_0/source/lib: .
jerry at samba.org
jerry at samba.org
Thu Feb 17 22:46:42 GMT 2005
Author: jerry
Date: 2005-02-17 22:46:41 +0000 (Thu, 17 Feb 2005)
New Revision: 5436
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5436
Log:
small merges from trunk
Modified:
branches/SAMBA_3_0/source/lib/privileges.c
Changeset:
Modified: branches/SAMBA_3_0/source/lib/privileges.c
===================================================================
--- branches/SAMBA_3_0/source/lib/privileges.c 2005-02-17 21:43:02 UTC (rev 5435)
+++ branches/SAMBA_3_0/source/lib/privileges.c 2005-02-17 22:46:41 UTC (rev 5436)
@@ -1,7 +1,7 @@
/*
Unix SMB/CIFS implementation.
Privileges handling functions
- Copyright (C) Jean François Micouleau 1998-2001
+ Copyright (C) Jean François Micouleau 1998-2001
Copyright (C) Simo Sorce 2002-2003
Copyright (C) Gerald (Jerry) Carter 2004
@@ -27,8 +27,8 @@
#define GENERATE_LUID_LOW(x) (x)+1;
-static SE_PRIV se_priv_all = SE_ALL_PRIVS;
-static SE_PRIV se_priv_end = SE_END;
+static const SE_PRIV se_priv_all = SE_ALL_PRIVS;
+static const SE_PRIV se_priv_end = SE_END;
/* Define variables for all privileges so we can use the
SE_PRIV* in the various se_priv_XXX() functions */
@@ -503,7 +503,7 @@
Add privilege to sid
****************************************************************************/
-BOOL grant_privilege(const DOM_SID *sid, SE_PRIV *priv_mask)
+BOOL grant_privilege(const DOM_SID *sid, const SE_PRIV *priv_mask)
{
SE_PRIV old_mask, new_mask;
@@ -548,7 +548,7 @@
Remove privilege from sid
****************************************************************************/
-BOOL revoke_privilege(const DOM_SID *sid, SE_PRIV *priv_mask)
+BOOL revoke_privilege(const DOM_SID *sid, const SE_PRIV *priv_mask)
{
SE_PRIV mask;
More information about the samba-cvs
mailing list