Changeset 956 in MondoRescue for trunk/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Nov 21, 2006, 1:42:46 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/common/libmondo-filelist.c
r914 r956 62 62 extern int g_noof_rows; 63 63 64 extern char *g_getfacl; 65 extern char *g_getfattr; 64 66 65 67 /** … … 95 97 log_to_screen(_("Dividing filelist into sets. Please wait.")); 96 98 i = 0; 97 /*98 if (find_home_of_exe("getfattr"))99 { i++; log_to_screen ("NEW! Recording extended attributes."); }100 if (find_home_of_exe("getfacl"))101 { i++; log_to_screen ("NEW! Recording ACL information."); }102 if (i)103 { i=0; log_to_screen ("This will take more time. Please be patient."); }104 */105 99 mr_asprintf(&filelist, "%s/archives/filelist.full", bkpinfo->scratchdir); 106 100 if (!does_file_exist(filelist)) { … … 475 469 int retval = 0; 476 470 477 mr_asprintf(&command, "touch %s", facl_fname); 478 run_program_and_log_output(command, 8); 479 mr_free(command); 480 481 tmp = find_home_of_exe("getfacl"); 482 if (tmp) { 483 // sort_file(filelist); // FIXME - filelist chopper sorts, so this isn't necessary 471 if (g_getfacl != NULL) { 472 mr_asprintf(&command, "touch %s", facl_fname); 473 run_program_and_log_output(command, 8); 474 mr_free(command); 475 484 476 mr_asprintf(&command, 485 477 "getfacl --all-effective -P %s 2>> %s | gzip -c1 > %s 2>> %s", … … 489 481 mr_free(command); 490 482 } 491 mr_free(tmp);492 483 return (retval); 493 484 } … … 500 491 int retval = 0; 501 492 502 mr_asprintf(&command, "touch %s", fattr_fname); 503 run_program_and_log_output(command, 8); 504 mr_free(command); 505 506 tmp = find_home_of_exe("getfattr"); 507 if (tmp) { 508 // sort_file(filelist); // FIXME - filelist chopper sorts, so this isn't necessary 493 if (g_getfattr != NULL) { 494 mr_asprintf(&command, "touch %s", fattr_fname); 495 run_program_and_log_output(command, 8); 496 mr_free(command); 497 509 498 retval = 510 499 gen_aux_list(filelist, "getfattr --en=hex -P -d \"%s\"", 511 500 fattr_fname); 512 501 } 513 mr_free(tmp);514 502 return (retval); 515 503 }
Note:
See TracChangeset
for help on using the changeset viewer.