diff options
author | David O'Neill <dmo@samba.org> | 2000-12-14 19:31:24 +0000 |
---|---|---|
committer | David O'Neill <dmo@samba.org> | 2000-12-14 19:31:24 +0000 |
commit | 1fc3e43f9b9b431e8499d2ebd7f557b9bf2ff14c (patch) | |
tree | 9bda6a37daa3a06fdd8bb4ef38e448119ad55ac9 /source3 | |
parent | 57779c6f3bb469263c195b5eb1afbf4769c00ffb (diff) | |
download | samba-1fc3e43f9b9b431e8499d2ebd7f557b9bf2ff14c.tar.gz samba-1fc3e43f9b9b431e8499d2ebd7f557b9bf2ff14c.tar.bz2 samba-1fc3e43f9b9b431e8499d2ebd7f557b9bf2ff14c.zip |
Changes from APPLIANCE_HEAD:
- add some debugs for comparing two security descriptors.
(source/rpc_parse/parse_sec.c)
(This used to be commit 505a8a2277f2bc761bd2b170fafbcb3afd982d92)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_parse/parse_sec.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_sec.c b/source3/rpc_parse/parse_sec.c index 2d4f745380..eac00d8372 100644 --- a/source3/rpc_parse/parse_sec.c +++ b/source3/rpc_parse/parse_sec.c @@ -348,11 +348,14 @@ BOOL sec_desc_equal(SEC_DESC *s1, SEC_DESC *s2) { /* Trivial case */ - if (!s1 && !s2) return True; + if (!s1 && !s2) { + goto done; + } /* Check top level stuff */ if (s1->revision != s2->revision || s1->type != s2->type) { + DEBUG(10, ("sec_desc_equal(): revision/type not equal\n")); return False; } @@ -360,6 +363,7 @@ BOOL sec_desc_equal(SEC_DESC *s1, SEC_DESC *s2) if (!sid_equal(s1->owner_sid, s2->owner_sid) || !sid_equal(s1->grp_sid, s2->grp_sid)) { + DEBUG(10, ("sec_desc_equal(): owner/group not equal\n")); return False; } @@ -367,6 +371,7 @@ BOOL sec_desc_equal(SEC_DESC *s1, SEC_DESC *s2) if ((s1->dacl && !s2->dacl) || (!s1->dacl && s2->dacl) || (s1->sacl && !s2->sacl) || (!s1->sacl && s2->sacl)) { + DEBUG(10, ("sec_desc_equal(): dacl/sacl not equal\n")); return False; } @@ -375,9 +380,12 @@ BOOL sec_desc_equal(SEC_DESC *s1, SEC_DESC *s2) if (!sec_acl_equal(s1->dacl, s2->dacl) || !sec_acl_equal(s1->sacl, s2->sacl)) { + DEBUG(10, ("sec_desc_equal(): dacl/dacl list not equal\n")); return False; } + done: + DEBUG(10, ("sec_equal(): secdescs are identical\n")); return True; } |