Ignore:
Timestamp:
Jul 22, 2009, 2:11:26 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Fix a printing error in mindi for the tar command
  • Fix all mr_asprintf which had no second param as a string

(report bug fix done originaly in 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/mondorestore/mondo-prep.c

    r2282 r2291  
    615615  // - faulty devices ignored
    616616  // - persistent superblock always used as this is recommended
    617   mr_asprintf(&program,
    618        "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d",
    619        raidlist->el[i].raid_device, level,
    620        raidlist->el[i].data_disks.entries);
     617  mr_asprintf(&program, "mdadm --create --force --run --auto=yes %s --level=%s --raid-devices=%d", raidlist->el[i].raid_device, level, raidlist->el[i].data_disks.entries);
    621618  if (raidlist->el[i].parity != -1) {
    622619    mr_asprintf(&strtmp, "%s", program);
     
    709706#endif
    710707    if (strlen(format) <= 2) {
    711         mr_asprintf(&tmp,
    712                 "%s has a really small format type ('%s') - this is probably a hexadecimal string, which would suggest the partition is an image --- I shouldn't format it",
    713                 device, format);
     708        mr_asprintf(&tmp, "%s has a really small format type ('%s') - this is probably a hexadecimal string, which would suggest the partition is an image --- I shouldn't format it", device, format);
    714709        log_it(tmp);
    715710        paranoid_free(tmp);
     
    774769
    775770                while (1) {
    776                     mr_asprintf(&tmp,
    777                             "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'",
    778                             line);
     771                    mr_asprintf(&tmp, "vinum lp -r %s | grep '^S' | head -1 | tr -s ' ' | cut -d: -f2 | cut -f1 | sed 's/^ //' | sed 's/I //' | sed 's/%%//'", line);
    779772                    FILE *pin = popen(tmp, "r");
    780773                    paranoid_free(tmp);
Note: See TracChangeset for help on using the changeset viewer.