Ignore:
Timestamp:
Sep 20, 2007, 10:20:45 PM (13 years ago)
Author:
Bruno Cornec
Message:

More conf file items handled

File:
1 edited

Legend:

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

    r1638 r1639  
    5858#endif                          /* __FreeBSD__ */
    5959
    60 extern struct mr_conf *mr_conf;
     60extern struct mr_ar_conf *mr_conf;
    6161
    6262/*@unused@*/
     
    534534    char *tmp = NULL;
    535535    char *command = NULL;
    536     char *use_lzo_sz = NULL;
    537     char *use_gzip_sz = NULL;
    538     char *use_comp_sz = NULL;
    539     char *use_star_sz = NULL;
    540536    char *bootldr_str = NULL;
    541537    char *tape_device = NULL;
     
    601597    /* BERLIOS: This parameter is not used after? */
    602598    mr_free(tape_size_sz);
    603     if (bkpinfo->use_lzo) {
    604         mr_asprintf(&use_lzo_sz, "yes");
    605     } else {
    606         mr_asprintf(&use_lzo_sz, "no");
    607     }
    608     if (bkpinfo->use_gzip) {
    609         mr_asprintf(&use_gzip_sz, "yes");
    610     } else {
    611         mr_asprintf(&use_gzip_sz, "no");
    612     }
    613     if (bkpinfo->use_star) {
    614         mr_asprintf(&use_star_sz, "yes");
    615     } else {
    616         mr_asprintf(&use_star_sz, "no");
    617     }
    618 
    619     if (bkpinfo->compression_level > 0) {
    620         mr_asprintf(&use_comp_sz, "yes");
    621     } else {
    622         mr_asprintf(&use_comp_sz, "no");
    623     }
    624599
    625600    mr_asprintf(&broken_bios_sz, "yes");    /* assume so */
     
    628603    } else {
    629604        mr_asprintf(&cd_recovery_sz, "no");
    630     }
    631     /* Field shared between LILO/ELILO */
    632     if (bkpinfo->make_cd_use_lilo) {
    633         mr_asprintf(&use_lilo_sz, "yes");
    634     } else {
    635         mr_asprintf(&use_lilo_sz, "no");
    636605    }
    637606
     
    896865    }
    897866    if (bkpinfo->differential) {
    898         mr_fprintf(fd1, "differential=1\n");
    899     } else {
    900         mr_fprintf(fd1, "differential=0\n");
     867        mr_fprintf(fd1, "differential=yes\n");
     868    } else {
     869        mr_fprintf(fd1, "differential=no\n");
    901870    }
    902871
     
    15691538 * - @c call_burn_iso
    15701539 * - @c call_make_iso
    1571  * - @c make_cd_use_lilo
    15721540 * - @c manual_tray
    15731541 * - @c nonbootable_backup
Note: See TracChangeset for help on using the changeset viewer.