Ignore:
Timestamp:
Nov 21, 2006, 1:42:46 AM (17 years ago)
Author:
Bruno Cornec
Message:

merge -r938:954 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/src/mondorestore/mondo-rstr-tools.c

    r914 r956  
    4343
    4444extern int g_partition_table_locked_up;
     45
     46/* Should we use or not extended attributes and acl when restoring */
     47char *g_getfattr = NULL;
     48char *g_getfacl = NULL;
    4549
    4650/**
     
    913917    }
    914918    mr_free(value);
     919
     920    read_cfg_var(cfg_file, "acl", value);
     921    if (strstr(value, "TRUE")) {
     922        asprintf(&g_getfacl,"setfacl");
     923        log_msg(1, "We will restore ACLs");
     924        if (! find_home_of_exe("setfacl")) {
     925            log_msg(1, "Unable to restore ACLs as no setfacl found");
     926        }
     927    }
     928    read_cfg_var(cfg_file, "xattr", value);
     929    if (strstr(value, "TRUE")) {
     930        asprintf(&g_getfattr,"setfattr");
     931        log_msg(1, "We will restore XATTRs");
     932        if (! find_home_of_exe("setfattr")) {
     933            log_msg(1, "Unable to restore XATTRs as no setfattr found");
     934        }
     935    }
    915936
    916937    if (0 == read_cfg_var(cfg_file, "internal-tape-block-size", value)) {
Note: See TracChangeset for help on using the changeset viewer.