Changeset 1147 in MondoRescue for branches/stable/mondo
- Timestamp:
- Feb 12, 2007, 11:13:09 AM (18 years ago)
- Location:
- branches/stable/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-archive.c
r1146 r1147 2405 2405 assert(bkpinfo != NULL); 2406 2406 /* slice big files */ 2407 malloc_string(blah);2408 2407 malloc_string(biggielist); 2409 2408 malloc_string(xattr_fname); 2410 2409 malloc_string(acl_fname); 2411 command = mr_malloc(1200);2412 2410 mvaddstr_and_log_it(g_currentY, 0, 2413 2411 "Archiving large files to media "); … … 2420 2418 } 2421 2419 2422 sprintf(command, "cp %s/biggielist.txt %s", bkpinfo->tmpdir,2420 mr_asprintf(&command, "cp %s/biggielist.txt %s", bkpinfo->tmpdir, 2423 2421 biggielist); 2424 2422 paranoid_system(command); 2425 sprintf(blah, "biggielist = %s", biggielist); 2423 mr_free(command); 2424 2425 mr_asprintf(&blah, "biggielist = %s", biggielist); 2426 2426 mr_msg(2, blah); 2427 mr_free(blah); 2427 2428 2428 2429 if (!does_file_exist(biggielist)) { … … 2432 2433 if (g_getfattr) { 2433 2434 get_fattr_list(biggielist, xattr_fname); 2434 sprintf(command, "cp %s %s/archives/", xattr_fname,2435 mr_asprintf(&command, "cp %s %s/archives/", xattr_fname, 2435 2436 bkpinfo->scratchdir); 2436 2437 paranoid_system(command); 2438 mr_free(command); 2437 2439 } 2438 2440 if (g_getfacl) { 2439 2441 get_acl_list(biggielist, acl_fname); 2440 sprintf(command, "cp %s %s/archives/", acl_fname, bkpinfo->scratchdir); 2442 mr_asprintf(&command, "cp %s %s/archives/", acl_fname, 2443 bkpinfo->scratchdir); 2441 2444 paranoid_system(command); 2445 mr_free(command); 2442 2446 } 2443 2447 2444 2448 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 2445 2449 res += write_EXAT_files_to_tape(bkpinfo, xattr_fname, acl_fname); 2446 sprintf(blah, "%ld", count_lines_in_file(biggielist));2450 mr_asprintf(&blah, "%ld", count_lines_in_file(biggielist)); 2447 2451 write_header_block_to_stream((off_t)0, blah, BLK_START_BIGGIEFILES); 2452 mr_free(blah); 2448 2453 } 2449 2454 res = make_slices_and_images(bkpinfo, biggielist); … … 2459 2464 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 2460 2465 } 2461 mr_free(blah);2462 2466 mr_free(biggielist); 2463 mr_free(command);2464 2467 mr_free(xattr_fname); 2465 2468 mr_free(acl_fname); 2466 2469 return (retval); 2467 2470 } 2468 2469 2471 2470 2472 -
branches/stable/mondo/src/common/libmondo-mountlist.c
r1123 r1147 16 16 #include "libmondo-tools-EXT.h" 17 17 #include "libmondo-string-EXT.h" 18 #include " libmondo-gui-EXT.h"18 #include "newt-specific-EXT.h" 19 19 #include "mr_mem.h" 20 20 #include "mr_msg.h" … … 329 329 sprintf(tmp, " %ld MB unallocated on %s.", 330 330 physical_drive_size - amount_allocated, drive); 331 log_it(tmp), strcat(flaws_str, tmp); 331 log_it(tmp); 332 strcat(flaws_str, tmp); 333 /* BERLIOS: Flawed since rev 1 !! */ 334 res++; 332 335 } 333 336 if (res) { … … 485 488 sprintf(tmp, " %ld MB unallocated on %s.", 486 489 physical_drive_size - amount_allocated, drive); 487 log_it(tmp), strcat(flaws_str, tmp); 490 log_it(tmp); 491 strcat(flaws_str, tmp); 492 /* BERLIOS: Flawed since rev 1 !! */ 493 res++; 488 494 } 489 495
Note:
See TracChangeset
for help on using the changeset viewer.