Changeset 146 in MondoRescue for trunk/mondo/mondo/mondorestore/mondo-prep.c


Ignore:
Timestamp:
Dec 1, 2005, 10:00:14 AM (18 years ago)
Author:
bcornec
Message:

MONDO_LOGFILE used each time now
memory management on libmondo-devices.c
some splint improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/mondorestore/mondo-prep.c

    r127 r146  
    488488            if (lvmversion == 2) {
    489489                strcpy(tmp, call_program_and_get_last_line_of_output
    490                        ("tail -n5 /var/log/mondo-archive.log | grep Insufficient | tail -n1"));
     490                       ("tail -n5 "MONDO_LOGFILE" | grep Insufficient | tail -n1"));
    491491            } else {
    492492                strcpy(tmp, call_program_and_get_last_line_of_output
    493                        ("tail -n5 /var/log/mondo-archive.log | grep lvcreate | tail -n1"));
     493                       ("tail -n5 "MONDO_LOGFILE" | grep lvcreate | tail -n1"));
    494494            }
    495495            for (p = tmp; *p != '\0' && !isdigit(*p); p++);
     
    18331833        }
    18341834    }
     1835    paranoid_free(part_table_fmt);
    18351836    strcat(output + strlen(output), "\n");  /*start block (ENTER for next free blk */
    18361837    if (partsize > 0) {
Note: See TracChangeset for help on using the changeset viewer.