Changeset 988 for vendor/current/source3/utils/profiles.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/utils/profiles.c
r740 r988 130 130 /* swap out the SIDs in the security descriptor */ 131 131 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"); 134 141 return False; 135 142 } … … 183 190 } 184 191 192 193 verbose_output("[%s]\n", path); 194 185 195 /* 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); 190 197 191 198 return True; … … 195 202 *********************************************************************/ 196 203 197 int main( int argc, c har *argv[] )204 int main( int argc, const char *argv[] ) 198 205 { 199 206 TALLOC_CTX *frame = talloc_stackframe(); … … 213 220 poptContext pc; 214 221 215 load_case_tables();222 smb_init_locale(); 216 223 217 224 /* setup logging options */ … … 219 226 setup_logging( "profiles", DEBUG_STDERR); 220 227 221 pc = poptGetContext("profiles", argc, (const char **)argv, long_options,228 pc = poptGetContext("profiles", argc, argv, long_options, 222 229 POPT_CONTEXT_KEEP_FIRST); 223 230
Note:
See TracChangeset
for help on using the changeset viewer.