- Timestamp:
- Sep 24, 2007, 1:07:01 PM (18 years ago)
- Location:
- branches/2.2.5/mondo/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.5/mondo/src/common/libmondo-tools.c
r1645 r1652 930 930 { 931 931 int res = 0; 932 char *tmp = NULL; 932 933 933 934 make_hole_for_dir(MNT_CDROM); … … 935 936 srandom((unsigned long) (time(NULL))); 936 937 insmod_crucial_modules(); 937 reset_bkpinfo(); // also sets defaults ('/'=backup path, 3=compression level)938 938 if (bkpinfo->disaster_recovery) { 939 939 if (!does_nonMS_partition_exist()) { … … 944 944 945 945 unlink(MONDO_TRACEFILE); 946 run_program_and_log_output("rm -Rf /tmp/changed.files*", FALSE); 946 asprintf(&tmp,"rm -Rf %s/changed.files*",bkpinfo->tmpdir); 947 run_program_and_log_output(tmp, FALSE); 948 paranoid_free(tmp); 947 949 if (find_and_store_mondoarchives_home(g_mondo_home)) { 948 950 fprintf(stderr, -
branches/2.2.5/mondo/src/mondoarchive/main.c
r1645 r1652 284 284 /* Initialize variables */ 285 285 286 malloc_libmondo_global_strings(); 287 malloc_string(tmp); 288 malloc_string(say_at_end); 286 printf("Initializing...\n"); 287 if (!(bkpinfo = malloc(sizeof(struct s_bkpinfo)))) { 288 fatal_error("Cannot malloc bkpinfo"); 289 } 290 reset_bkpinfo(); 289 291 290 292 res = 0; 291 293 retval = 0; 292 294 diffs = 0; 295 malloc_string(tmp); 296 malloc_string(say_at_end); 293 297 say_at_end[0] = '\0'; 294 printf("Initializing...\n"); 295 if (!(bkpinfo = malloc(sizeof(struct s_bkpinfo)))) { 296 fatal_error("Cannot malloc bkpinfo"); 297 } 298 malloc_libmondo_global_strings(); 298 299 299 300 /* initialize log file with time stamp */
Note:
See TracChangeset
for help on using the changeset viewer.