Ignore:
Timestamp:
Nov 19, 2006, 2:11:58 AM (17 years ago)
Author:
Bruno Cornec
Message:

Should fix #63, , and add the required interface in mondorestore to handle the new way of dealing with ACLs and XATTRs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-archive.c

    r948 r949  
    693693    /*@ buffer ************************************************************ */
    694694    char *tmp;
     695    char *tmp1 = NULL;
    695696    char *scratchdir;
    696697    char *command;
     
    959960    } else {
    960961        res += write_one_liner_data_file(tmp, "0");
     962    }
     963
     964    if (g_getfattr) {
     965        asprintf(&tmp1, "%s/XATTR", bkpinfo->tmpdir);
     966        if (write_one_liner_data_file(tmp1, "TRUE")) {
     967            log_msg(1, "%ld: Unable to write one-liner XATTR",
     968                __LINE__);
     969        }
     970        paranoid_free(tmp1);
     971    }
     972    if (g_getfacl) {
     973        asprintf(&tmp1, "%s/ACL", bkpinfo->tmpdir);
     974        if (write_one_liner_data_file(tmp1, "TRUE")) {
     975            log_msg(1, "%ld: Unable to write one-liner ACL",
     976                __LINE__);
     977        }
     978        paranoid_free(tmp1);
    961979    }
    962980
Note: See TracChangeset for help on using the changeset viewer.