Ignore:
Timestamp:
May 24, 2009, 7:17:10 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 to 3.3.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/utils/profiles.c

    r206 r221  
    5858static bool swap_sid_in_acl( SEC_DESC *sd, DOM_SID *s1, DOM_SID *s2 )
    5959{
    60         SEC_ACL *acl;
     60        SEC_ACL *theacl;
    6161        int i;
    6262        bool update = False;
     
    7979        }
    8080
    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++ ) {
    8484                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 );
    8888                        update = True;
    8989                        verbose_output("    New Trustee SID: %s\n",
    90                                 sid_string_tos(&acl->aces[i].trustee));
     90                                sid_string_tos(&theacl->aces[i].trustee));
    9191                }
    9292        }
    9393
    9494#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++ ) {
    9898                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 );
    102102                        update = True;
    103103                        verbose_output("    New Trustee SID: %s\n",
    104                                 sid_string_tos(&acl->aces[i].trustee));
     104                                sid_string_tos(&theacl->aces[i].trustee));
    105105                }
    106106        }
Note: See TracChangeset for help on using the changeset viewer.