Changeset 944 in MondoRescue


Ignore:
Timestamp:
Nov 18, 2006, 1:25:11 AM (17 years ago)
Author:
Bruno Cornec
Message:

getfacl and getfattr not searched everytime but only in the main of mondoarchive (in link with #63)

Location:
branches/stable/mondo/src
Files:
2 edited

Legend:

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

    r943 r944  
    164164extern int g_noof_rows;
    165165
    166 
     166extern char *g_getfacl;
     167extern char *g_getfattr;
    167168
    168169
     
    602603    int retval = 0;
    603604
    604     if (find_home_of_exe("getfacl")) {
     605    if (g_getfacl != NULL) {
    605606        malloc_string(command);
    606607        sprintf(command, "touch %s", facl_fname);
     
    623624    int retval = 0;
    624625
    625     if (find_home_of_exe("getfattr")) {
     626    if (g_getfattr != NULL) {
    626627        malloc_string(command);
    627628        sprintf(command, "touch %s", fattr_fname);
  • branches/stable/mondo/src/mondoarchive/main.c

    r928 r944  
    142142char *ps_options = "auxww";
    143143char *ps_proc_id = "$2";
     144char *g_getfacl = NULL
     145char *g_getfattr = NULL
    144146
    145147extern t_bkptype g_backup_media_type;
     
    456458            bkpinfo->scratchdir);
    457459
     460    if (find_home_of_exe("getfacl")) {
     461        asprintf(&g_setfacl,"getfacl");
     462    }
     463    if (find_home_of_exe("getfattr")) {
     464        asprintf(&g_setfacl,"getfattr");
     465    }
     466
    458467    /* If we're meant to backup then backup */
    459468    if (bkpinfo->backup_data) {
    460 /*
    461       log_to_screen("INFERNAL PORPOISES");
    462       res = archive_this_fileset_with_star(bkpinfo, "/tmp/filelist.0", "/tmp/0.star.bz2", 0);
    463       log_to_screen("atfws returned %d", res);
    464       finish(0);
    465 */
    466469        res = backup_data(bkpinfo);
    467470        retval += res;
Note: See TracChangeset for help on using the changeset viewer.