- Timestamp:
- 08/15/08 21:21:54 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/reglookup.c
r121 r125 47 47 48 48 /* XXX: A hack to share some functions with reglookup-recover.c. 49 * Should move these into a proper lylibrary at some point.49 * Should move these into a proper library at some point. 50 50 */ 51 51 #include "common.c" … … 295 295 char* sacl = NULL; 296 296 char* dacl = NULL; 297 char* quoted_classname; 297 298 char mtime[20]; 298 299 time_t tmp_time[1]; … … 320 321 dacl = empty_str; 321 322 322 printf("%s,KEY,,%s,%s,%s,%s,%s\n", full_path, mtime, 323 owner, group, sacl, dacl); 323 if(k->classname != NULL) 324 quoted_classname = quote_string(k->classname, key_special_chars); 325 else 326 quoted_classname = empty_str; 327 328 printf("%s,KEY,,%s,%s,%s,%s,%s,%s\n", full_path, mtime, 329 owner, group, sacl, dacl, quoted_classname); 324 330 325 331 if(owner != empty_str) … … 331 337 if(dacl != empty_str) 332 338 free(dacl); 339 if(quoted_classname != empty_str) 340 free(quoted_classname); 333 341 } 334 342 else … … 582 590 { 583 591 if(print_security) 584 printf("PATH,TYPE,VALUE,MTIME,OWNER,GROUP,SACL,DACL \n");592 printf("PATH,TYPE,VALUE,MTIME,OWNER,GROUP,SACL,DACL,CLASS\n"); 585 593 else 586 594 printf("PATH,TYPE,VALUE,MTIME\n");
Note: See TracChangeset
for help on using the changeset viewer.