Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/utils/profiles.c

    r740 r988  
    130130        /* swap out the SIDs in the security descriptor */
    131131
    132         if ( !(new_sd = dup_sec_desc( outfile->mem_ctx, nk->sec_desc->sec_desc )) ) {
    133                 fprintf( stderr, "Failed to copy security descriptor!\n" );
     132        if (nk->sec_desc->sec_desc == NULL) {
     133                fprintf(stderr, "Invalid (NULL) security descriptor!\n");
     134                return false;
     135        }
     136
     137        new_sd = security_descriptor_copy(outfile->mem_ctx,
     138                                          nk->sec_desc->sec_desc);
     139        if (new_sd == NULL) {
     140                fprintf(stderr, "Failed to copy security descriptor!\n");
    134141                return False;
    135142        }
     
    183190        }
    184191
     192
     193        verbose_output("[%s]\n", path);
     194
    185195        /* values is a talloc()'d child of subkeys here so just throw it all away */
    186 
    187         TALLOC_FREE( subkeys );
    188 
    189         verbose_output("[%s]\n", path);
     196        TALLOC_FREE(subkeys);
    190197
    191198        return True;
     
    195202*********************************************************************/
    196203
    197 int main( int argc, char *argv[] )
     204int main( int argc, const char *argv[] )
    198205{
    199206        TALLOC_CTX *frame = talloc_stackframe();
     
    213220        poptContext pc;
    214221
    215         load_case_tables();
     222        smb_init_locale();
    216223
    217224        /* setup logging options */
     
    219226        setup_logging( "profiles", DEBUG_STDERR);
    220227
    221         pc = poptGetContext("profiles", argc, (const char **)argv, long_options,
     228        pc = poptGetContext("profiles", argc, argv, long_options,
    222229                POPT_CONTEXT_KEEP_FIRST);
    223230
Note: See TracChangeset for help on using the changeset viewer.