Changeset 221 for branches/samba-3.3.x/source/utils/profiles.c
- Timestamp:
- May 24, 2009, 7:17:10 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/utils/profiles.c
r206 r221 58 58 static bool swap_sid_in_acl( SEC_DESC *sd, DOM_SID *s1, DOM_SID *s2 ) 59 59 { 60 SEC_ACL * acl;60 SEC_ACL *theacl; 61 61 int i; 62 62 bool update = False; … … 79 79 } 80 80 81 acl = sd->dacl;82 verbose_output(" DACL: %d entries:\n", acl->num_aces);83 for ( i=0; i< acl->num_aces; i++ ) {81 theacl = sd->dacl; 82 verbose_output(" DACL: %d entries:\n", theacl->num_aces); 83 for ( i=0; i<theacl->num_aces; i++ ) { 84 84 verbose_output(" Trustee SID: %s\n", 85 sid_string_tos(& acl->aces[i].trustee));86 if ( sid_equal( & acl->aces[i].trustee, s1 ) ) {87 sid_copy( & acl->aces[i].trustee, s2 );85 sid_string_tos(&theacl->aces[i].trustee)); 86 if ( sid_equal( &theacl->aces[i].trustee, s1 ) ) { 87 sid_copy( &theacl->aces[i].trustee, s2 ); 88 88 update = True; 89 89 verbose_output(" New Trustee SID: %s\n", 90 sid_string_tos(& acl->aces[i].trustee));90 sid_string_tos(&theacl->aces[i].trustee)); 91 91 } 92 92 } 93 93 94 94 #if 0 95 acl = sd->sacl;96 verbose_output(" SACL: %d entries: \n", acl->num_aces);97 for ( i=0; i< acl->num_aces; i++ ) {95 theacl = sd->sacl; 96 verbose_output(" SACL: %d entries: \n", theacl->num_aces); 97 for ( i=0; i<theacl->num_aces; i++ ) { 98 98 verbose_output(" Trustee SID: %s\n", 99 sid_string_tos(& acl->aces[i].trustee));100 if ( sid_equal( & acl->aces[i].trustee, s1 ) ) {101 sid_copy( & acl->aces[i].trustee, s2 );99 sid_string_tos(&theacl->aces[i].trustee)); 100 if ( sid_equal( &theacl->aces[i].trustee, s1 ) ) { 101 sid_copy( &theacl->aces[i].trustee, s2 ); 102 102 update = True; 103 103 verbose_output(" New Trustee SID: %s\n", 104 sid_string_tos(& acl->aces[i].trustee));104 sid_string_tos(&theacl->aces[i].trustee)); 105 105 } 106 106 }
Note:
See TracChangeset
for help on using the changeset viewer.