Changeset 1315 in MondoRescue for branches/2.2.2/mondo/src/common
- Timestamp:
- Apr 16, 2007, 4:13:59 PM (17 years ago)
- Location:
- branches/2.2.2/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mondo/src/common/libmondo-archive.c
r1299 r1315 1952 1952 } else { 1953 1953 log_to_screen("%s...OK", message_to_screen); 1954 if (!run_program_and_log_output 1955 ("tail -n10 /var/log/mondo-archive.log | grep -F ':-('", 1956 1)) { 1954 sprintf(tmp, "tail -n10 %s | grep -F ':-('", MONDO_LOGFILE); 1955 if (!run_program_and_log_output(tmp, 1)) { 1957 1956 log_to_screen 1958 1957 ("Despite nonfatal errors, growisofs confirms the write was successful."); -
branches/2.2.2/mondo/src/common/my-stuff.h
r1236 r1315 381 381 //#define strcpy(y,x) strncpy(y, x, sizeof(y)-1) 382 382 383 384 /**385 * Compatibility #define to ease the transition to logfile-in-a-variable.386 */387 #define MONDO_LOGFILE "/var/log/mondo-archive.log"388 383 389 384 /** -
branches/2.2.2/mondo/src/common/newt-specific.c
r1294 r1315 435 435 436 436 printf("---FATALERROR--- %s\n", error_string); 437 s ystem438 ("gzip -9c /var/log/mondo-archive.log > /tmp/MA.log.gz 2> /dev/null");437 sprintf(command, "gzip -9c %s > /tmp/MA.log.gz 2> /dev/null", MONDO_LOGFILE); 438 system(command); 439 439 printf 440 440 ("If you require technical support, please contact the mailing list.\n");
Note:
See TracChangeset
for help on using the changeset viewer.