Changeset 1933 in MondoRescue
- Timestamp:
- May 7, 2008, 2:54:22 PM (17 years ago)
- Location:
- branches/2.2.6/mondo/src/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-archive.c
r1926 r1933 1355 1355 int i; 1356 1356 char *curr_xattr_list_fname = NULL; 1357 char *curr_acl_list_fname ;1357 char *curr_acl_list_fname = NULL; 1358 1358 int misc_counter_that_is_not_important = 0; 1359 1359 … … 1469 1469 write_EXAT_files_to_tape(curr_xattr_list_fname, 1470 1470 curr_acl_list_fname); 1471 // archives themselves1471 // archives themselves 1472 1472 res += 1473 1473 move_files_to_stream(storing_afioball_fname, … … 2260 2260 write_EXAT_files_to_tape(curr_xattr_list_fname, 2261 2261 curr_acl_list_fname); 2262 // archives themselves2262 // archives themselves 2263 2263 res = move_files_to_stream(curr_afioball_fname, NULL); 2264 2264 } else { -
branches/2.2.6/mondo/src/common/libmondo-stream.c
r1913 r1933 446 446 { 447 447 int res = 0; 448 int retval = 0;449 448 char *fname = (char *)&res; /* Should NOT be NULL */ 450 449 451 // xattr450 // xattr 452 451 if (g_getfattr) { 453 452 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); … … 456 455 } 457 456 if (!strstr(fname, "xattr")) { 458 fatal_error("Wrong order , sunshine.");457 fatal_error("Wrong order for xattr, sunshine."); 459 458 } 460 459 read_file_from_stream_to_file(xattr_fname, *ptmp_size); … … 464 463 } 465 464 log_msg(1, "Got xattr"); 466 } 467 // acl 465 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr); 466 if (*pctrl_chr != BLK_STOP_EXTENDED_ATTRIBUTES) { 467 wrong_marker(BLK_STOP_EXTENDED_ATTRIBUTES, *pctrl_chr); 468 } 469 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr); 470 if (pctrl_chr == BLK_START_AN_AFIO_OR_SLICE) { 471 log_msg(1, "No acl attributes found, skipping to afio files"); 472 return(0); 473 } else { 474 if (pctrl_chr != BLK_START_EXTENDED_ATTRIBUTES) { 475 wrong_marker(BLK_START_EXTENDED_ATTRIBUTES, *pctrl_chr); 476 } 477 } 478 } 479 // acl 468 480 if (g_getfacl) { 469 481 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 470 482 if (!strstr(fname, "acl")) { 471 fatal_error("Wrong order , sunshine.");483 fatal_error("Wrong order for acl, sunshine."); 472 484 } 473 485 if (*pctrl_chr != BLK_START_EXAT_FILE) { … … 485 497 log_msg(1, "Got acl"); 486 498 } 487 // tarball itself499 // tarball itself 488 500 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr); 489 log_msg(1, " now looking for afioball");490 return ( retval);501 log_msg(1, "End of extended attributes, now looking for afioball"); 502 return (0); 491 503 } 492 504 … … 504 516 write_file_to_stream_from_file(xattr_fname); 505 517 write_header_block_to_stream((off_t)-1, xattr_fname, BLK_STOP_EXAT_FILE); 518 write_header_block_to_stream(length_of_file(xattr_fname), xattr_fname, 519 BLK_STOP_EXTENDED_ATTRIBUTES); 506 520 } 507 521 if (g_getfacl) { 508 522 // acl 523 write_header_block_to_stream(length_of_file(acl_fname), acl_fname, 524 BLK_START_EXTENDED_ATTRIBUTES); 509 525 write_header_block_to_stream(length_of_file(acl_fname), acl_fname, 510 526 BLK_START_EXAT_FILE); 511 527 write_file_to_stream_from_file(acl_fname); 512 528 write_header_block_to_stream((off_t)-1, acl_fname, BLK_STOP_EXAT_FILE); 513 write_header_block_to_stream(length_of_file( xattr_fname), xattr_fname,529 write_header_block_to_stream(length_of_file(acl_fname), acl_fname, 514 530 BLK_STOP_EXTENDED_ATTRIBUTES); 515 531 }
Note:
See TracChangeset
for help on using the changeset viewer.