Changeset 2576 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-filelist.c
- Timestamp:
- Feb 5, 2010, 5:51:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-filelist.c
r2569 r2576 525 525 int i; 526 526 char *p, *q; 527 char *tmp = NULL; 527 528 FILE *pin, *pout, *faclin; 528 529 … … 531 532 || !does_file_exist(orig_msklist)) { 532 533 log_msg(1, "No masklist provided. I shall therefore set ALL attributes."); 533 mr_asprintf(command, "gzip -dc %s | %s -h --restore - 2>> %s", original_exat_fname, executable, MONDO_LOGFILE); 534 if (strstr(executable,"acl")) { 535 /* setfacl needs no additional option for physical walk */ 536 mr_asprintf(tmp,""); 537 } else { 538 /* setfattr needs option -h for physical walk */ 539 mr_asprintf(tmp,"-h"); 540 } 541 mr_asprintf(command, "gzip -dc %s | %s %s --restore - 2>> %s", original_exat_fname, executable, tmp, MONDO_LOGFILE); 542 mr_free(tmp); 534 543 log_msg(1, "command = %s", command); 535 544 retval = system(command);
Note:
See TracChangeset
for help on using the changeset viewer.