Changeset 1552 in MondoRescue
- Timestamp:
- Jul 24, 2007, 3:22:07 PM (18 years ago)
- Location:
- branches/2.2.5/mondo/src/common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-archive.c
r1437 r1552 3380 3380 /*@ pointers ************************************************** */ 3381 3381 char *pB; 3382 FILE *fin , *fout;3382 FILE *fin = NULL, *fout = NULL; 3383 3383 3384 3384 /*@ bool ****************************************************** */ … … 3485 3485 3486 3486 (void) fwrite((void *) &biggiestruct, 1, sizeof(biggiestruct), fout); 3487 fclose(fout);3487 paranoid_fclose(fout); 3488 3488 length = totallength / optimal_set_size / 1024; 3489 3489 log_msg(1, "Opening in %s; slicing it and writing to CD/tape", -
branches/2.2.5/mondo/src/common/libmondo-filelist.c
r1540 r1552 565 565 char *file_to_analyze; 566 566 char *strtmp = NULL; 567 char *tmp = NULL; 567 568 int i; 568 569 … … 587 588 } 588 589 log_msg(8, "Analyzing %s", file_to_analyze); 589 asprintf(&strtmp, syscall_sprintf, mr_stresc(file_to_analyze, "`$\\\"", '\\')); 590 tmp = mr_stresc(file_to_analyze, "`$\\\"", '\\'); 591 asprintf(&strtmp, syscall_sprintf, tmp); 592 paranoid_free(tmp); 590 593 asprintf(&syscall, "%s 2>> /dev/null", strtmp); // " MONDO_LOGFILE); 591 594 paranoid_free(strtmp); … … 835 838 assert(bkpinfo != NULL); 836 839 840 strcpy(val_sz,""); 837 841 sprintf(cfg_fname, "%s/mondo-restore.cfg", bkpinfo->tmpdir); 838 842 read_cfg_var(cfg_fname, "last-filelist-number", val_sz); -
branches/2.2.5/mondo/src/common/mr_string.c
r843 r1552 67 67 // Found it, skip the rest. 68 68 cnt++; 69 inptr++;70 69 break; 71 70 } 72 inptr++;73 71 escptr++; 74 72 } 73 inptr++; 75 74 } 76 75 inptr = instr; … … 84 83 while (*escptr != '\0') { 85 84 if (*inptr == *escptr) { 86 // Found it, skip the rest.85 // Found it, prepend with the escape char 87 86 *retptr = escchr; 88 87 retptr++; … … 98 97 99 98 return retstr; 100 101 99 }
Note:
See TracChangeset
for help on using the changeset viewer.