Changeset 815 in MondoRescue for trunk/mondo/mondo/mondoarchive
- Timestamp:
- Sep 23, 2006, 10:37:43 AM (18 years ago)
- Location:
- trunk/mondo/mondo/mondoarchive
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/mondoarchive/main.c
r808 r815 123 123 } 124 124 125 /* Return a string containing the date */ 126 char *mr_date(void) { 127 128 time_t tcurr; 129 130 tcurr = time(NULL); 131 return(ctime(&tcurr)); 132 } 133 134 /*-----------------------------------------------------------*/ 135 136 125 137 126 138 /** … … 167 179 /* Initialize Configuration Structure */ 168 180 mr_archive_init_conf(bkpinfo->mr_conf); 169 log_msg(0, "Start date : %s", get_time()); 181 182 /* initialize log file with time stamp */ 183 unlink(MONDO_LOGFILE); 184 log_msg(0, "Time started: %s", mr_date()); 170 185 171 186 /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */ … … 179 194 /* Add MONDO_SHARE environment variable for mindi */ 180 195 setenv_mondo_share(); 181 182 unlink(MONDO_LOGFILE);183 196 184 197 /* Configure the bkpinfo structure, global file paths, etc. */ … … 417 430 418 431 run_program_and_log_output("date", 1); 419 log_msg(0, "End date : %s", get_time()); 432 433 /* finalize log file with time stamp */ 434 log_msg(0, "Time finished: %s", mr_date()); 420 435 421 436 if (!g_text_mode) { -
trunk/mondo/mondo/mondoarchive/mondo-cli.c
r808 r815 515 515 * so handled here for the moment */ 516 516 q--; 517 if (*q = '/') {517 if (*q == '/') { 518 518 *q = '\0'; 519 519 }
Note:
See TracChangeset
for help on using the changeset viewer.