Changeset 2664 in MondoRescue


Ignore:
Timestamp:
Jun 23, 2010, 11:30:40 PM (10 years ago)
Author:
Bruno Cornec
Message:

r3922@localhost: bruno | 2010-06-22 23:22:04 +0200

  • Fix a bug when using ACLs and file with spaces in their names by adding double quotes in getfacl invocation (Tom Mortell tomm_at_dslextreme.com). Also adding the same quotes on the touch commands made earlier.
File:
1 edited

Legend:

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

    r2641 r2664  
    494494
    495495    if (g_getfacl != NULL) {
    496         mr_asprintf(&command, "touch %s", facl_fname);
     496        mr_asprintf(&command, "touch \"%s\"", facl_fname);
    497497        run_program_and_log_output(command, 8);
    498498        mr_free(command);
    499499
    500500        retval =
    501             gen_aux_list(filelist, "getfacl --all-effective -P %s",
     501            gen_aux_list(filelist, "getfacl --all-effective -P \"%s\"",
    502502                         facl_fname);
    503503    }
     
    512512
    513513    if (g_getfattr != NULL) {
    514         mr_asprintf(&command, "touch %s", fattr_fname);
     514        mr_asprintf(&command, "touch \"%s\"", fattr_fname);
    515515        run_program_and_log_output(command, 8);
    516516        mr_free(command);
Note: See TracChangeset for help on using the changeset viewer.