Ignore:
Timestamp:
Dec 7, 2006, 2:01:34 AM (17 years ago)
Author:
Bruno Cornec
Message:

Attempt to solve #113

File:
1 edited

Legend:

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

    r951 r998  
    11361136    if (strstr(value, "yes")) {
    11371137        bkpinfo->use_lzo = TRUE;
     1138        bkpinfo->use_gzip = FALSE;
    11381139        strcpy(bkpinfo->zip_exe, "lzop");
    11391140        strcpy(bkpinfo->zip_suffix, "lzo");
    11401141    } else {
    1141         read_cfg_var(cfg_file, "use-comp", value);
     1142        read_cfg_var(cfg_file, "use-gzip", value);
    11421143        if (strstr(value, "yes")) {
    11431144            bkpinfo->use_lzo = FALSE;
    1144             strcpy(bkpinfo->zip_exe, "bzip2");
    1145             strcpy(bkpinfo->zip_suffix, "bz2");
     1145            bkpinfo->use_gzip = TRUE;
     1146            strcpy(bkpinfo->zip_exe, "gzip");
     1147            strcpy(bkpinfo->zip_suffix, "gz");
    11461148        } else {
    1147             bkpinfo->zip_exe[0] = bkpinfo->zip_suffix[0] = '\0';
     1149            read_cfg_var(cfg_file, "use-comp", value);
     1150            if (strstr(value, "yes")) {
     1151                bkpinfo->use_lzo = FALSE;
     1152                bkpinfo->use_gzip = FALSE;
     1153                strcpy(bkpinfo->zip_exe, "bzip2");
     1154                strcpy(bkpinfo->zip_suffix, "bz2");
     1155            } else {
     1156                bkpinfo->zip_exe[0] = bkpinfo->zip_suffix[0] = '\0';
     1157            }
    11481158        }
    11491159    }
Note: See TracChangeset for help on using the changeset viewer.