Changeset 1315 in MondoRescue for branches/2.2.2/mondo/src/mondorestore/mondo-prep.c
- Timestamp:
- Apr 16, 2007, 4:13:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mondo/src/mondorestore/mondo-prep.c
r1303 r1315 337 337 /** buffers **********************************************/ 338 338 char *tmp; 339 char *tmp1 = NULL; 339 340 char *incoming; 340 341 char *command; … … 486 487 log_it("%s... so I'll get creative.", tmp); 487 488 if (lvmversion == 2) { 488 strcpy(tmp, call_program_and_get_last_line_of_output 489 ("tail -n5 /var/log/mondo-archive.log | grep Insufficient | tail -n1")); 489 asprintf(&tmp1, "tail -n5 %s | grep Insufficient | tail -n1", MONDO_LOGFILE); 490 strcpy(tmp, call_program_and_get_last_line_of_output(tmp1)); 491 free(tmp1); 490 492 } else { 491 strcpy(tmp, call_program_and_get_last_line_of_output 492 ("tail -n5 /var/log/mondo-archive.log | grep lvcreate | tail -n1")); 493 asprintf(&tmp1, "tail -n5 %s | grep lvcreate | tail -n1", MONDO_LOGFILE); 494 strcpy(tmp, call_program_and_get_last_line_of_output(tmp1)); 495 free(tmp1); 493 496 } 494 497 for (p = tmp; *p != '\0' && !isdigit(*p); p++);
Note:
See TracChangeset
for help on using the changeset viewer.