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/mondorestore/mondo-rstr-tools.c

    r913 r949  
    161161extern int g_partition_table_locked_up;
    162162
     163/* Should we use or not extended attributes and acl when restoring */
     164char *g_getfattr = NULL;
     165char *g_getfacl = NULL;
     166
    163167/**
    164168 * @addtogroup restoreUtilityGroup
     
    10991103        bkpinfo->use_star = TRUE;
    11001104        log_msg(1, "Goody! ... bkpinfo->use_star is now true.");
     1105    }
     1106
     1107    read_cfg_var(cfg_file, "acl", value);
     1108    if (strstr(value, "TRUE")) {
     1109        asprintf(&g_getfacl,"setfacl");
     1110        log_msg(1, "We will restore ACLs");
     1111        if (! find_home_of_exe(setfacl)) {
     1112            log_msg(1, "Unable to restore ACLs as no setfacl found");
     1113        }
     1114    }
     1115    read_cfg_var(cfg_file, "xattr", value);
     1116    if (strstr(value, "TRUE")) {
     1117        asprintf(&g_getfattr,"setfattr");
     1118        log_msg(1, "We will restore XATTRs");
     1119        if (! find_home_of_exe(setfattr)) {
     1120            log_msg(1, "Unable to restore XATTRs as no setfattr found");
     1121        }
    11011122    }
    11021123
Note: See TracChangeset for help on using the changeset viewer.