Changeset 2556


Ignore:
Timestamp:
Jan 28, 2010, 8:04:01 PM (10 years ago)
Author:
bruno
Message:
  • Fix restoration of extended attributes by going into the target directory
  • Fix acl backup which was completely wrong.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-filelist.c

    r2549 r2556  
    498498        mr_free(command);
    499499
    500         mr_asprintf(&command,
    501                 "getfacl --all-effective -P %s 2>> %s | gzip -c1 > %s 2>> %s",
    502                 filelist, MONDO_LOGFILE, facl_fname, MONDO_LOGFILE);
    503         log_it("%s",command);
    504         retval = system(command);
    505         mr_free(command);
     500        retval =
     501            gen_aux_list(filelist, "getfacl --all-effective -P %s",
     502                         facl_fname);
    506503    }
    507504    return (retval);
     
    546543        || !does_file_exist(orig_msklist)) {
    547544        log_msg(1, "No masklist provided. I shall therefore set ALL attributes.");
    548         mr_asprintf(&command, "gzip -dc %s | %s --restore - 2>> %s", original_exat_fname, executable, MONDO_LOGFILE);
     545        mr_asprintf(&command, "gzip -dc %s | (cd " MNT_RESTORING " ; %s --restore -) 2>> %s", original_exat_fname, executable, MONDO_LOGFILE);
    549546        log_msg(1, "command = %s", command);
    550547        retval = system(command);
Note: See TracChangeset for help on using the changeset viewer.