- Timestamp:
- 08/25/10 11:20:32 (14 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common.c
r203 r206 324 324 char* ret_val; 325 325 326 if(nk-> keyname == NULL)327 ret_val = quote_buffer(nk-> keyname_raw, nk->name_length, key_special_chars);326 if(nk->name == NULL) 327 ret_val = quote_buffer(nk->name_raw, nk->name_length, key_special_chars); 328 328 else 329 ret_val = quote_string(nk-> keyname, key_special_chars);329 ret_val = quote_string(nk->name, key_special_chars); 330 330 331 331 return ret_val; … … 337 337 char* ret_val; 338 338 339 if(vk-> valuename == NULL)340 ret_val = quote_buffer(vk-> valuename_raw, vk->name_length,339 if(vk->name == NULL) 340 ret_val = quote_buffer(vk->name_raw, vk->name_length, 341 341 key_special_chars); 342 342 else 343 ret_val = quote_string(vk-> valuename, key_special_chars);343 ret_val = quote_string(vk->name, key_special_chars); 344 344 345 345 return ret_val; -
trunk/src/reglookup-recover.c
r203 r206 832 832 regfi_log_set_mask(REGFI_LOG_ERROR); 833 833 834 f = regfi_alloc(fd); 834 /* XXX: add command line option to choose output encoding */ 835 f = regfi_alloc(fd, REGFI_ENCODING_ASCII); 835 836 if(f == NULL) 836 837 { -
trunk/src/reglookup.c
r203 r206 77 77 } 78 78 79 data = regfi_ iterator_fetch_data(iter, vk);79 data = regfi_fetch_data(iter->f, vk); 80 80 81 81 printMsgs(iter->f); … … 304 304 formatTime(&key->mtime, mtime); 305 305 306 if(print_security && (sk=regfi_ iterator_cur_sk(iter)))306 if(print_security && (sk=regfi_fetch_sk(iter->f, key))) 307 307 { 308 308 owner = regfi_get_owner(sk->sec_desc); … … 321 321 dacl = empty_str; 322 322 323 classname = regfi_ iterator_fetch_classname(iter, key);323 classname = regfi_fetch_classname(iter->f, key); 324 324 printMsgs(iter->f); 325 325 if(classname != NULL) … … 636 636 } 637 637 638 f = regfi_alloc(fd); 638 /* XXX: add command line option to choose output encoding */ 639 f = regfi_alloc(fd, REGFI_ENCODING_ASCII); 639 640 if(f == NULL) 640 641 { … … 643 644 } 644 645 645 646 /* XXX: add command line option to choose output encoding */ 647 iter = regfi_iterator_new(f, REGFI_ENCODING_ASCII); 646 iter = regfi_iterator_new(f); 648 647 if(iter == NULL) 649 648 {
Note: See TracChangeset
for help on using the changeset viewer.