Changeset 1940 in MondoRescue
- Timestamp:
- May 17, 2008, 2:34:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.6/mondo/src/common/libmondo-stream.c
r1934 r1940 448 448 int res = 0; 449 449 char *fname = (char *)&res; /* Should NOT be NULL */ 450 char *tmp = NULL; 450 451 451 452 // xattr … … 455 456 wrong_marker(BLK_START_EXAT_FILE, *pctrl_chr); 456 457 } 457 if (!strstr(fname, "xattr")) { 458 fatal_error("Wrong order for xattr, sunshine."); 458 if (strstr(fname, "xattr") == NULL) { 459 asprintf(&tmp,"Wrong order expected xattr, got %s, sunshine.", fname); 460 fatal_error(tmp); 459 461 } 460 462 read_file_from_stream_to_file(xattr_fname, *ptmp_size); 461 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);463 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 462 464 if (*pctrl_chr != BLK_STOP_EXAT_FILE) { 463 465 wrong_marker(BLK_STOP_EXAT_FILE, *pctrl_chr); 464 466 } 465 467 log_msg(1, "Got xattr"); 466 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);468 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 467 469 if (*pctrl_chr != BLK_STOP_EXTENDED_ATTRIBUTES) { 468 470 wrong_marker(BLK_STOP_EXTENDED_ATTRIBUTES, *pctrl_chr); 469 471 } 470 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);472 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 471 473 if (pctrl_chr == BLK_START_AN_AFIO_OR_SLICE) { 472 474 log_msg(1, "No acl attributes found, skipping to afio files"); … … 481 483 if (g_getfacl) { 482 484 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 483 if (!strstr(fname, "acl")) {484 fatal_error("Wrong order for acl, sunshine.");485 }486 485 if (*pctrl_chr != BLK_START_EXAT_FILE) { 487 486 wrong_marker(BLK_START_EXAT_FILE, *pctrl_chr); 488 487 } 488 if (strstr(fname, "acl") == NULL) { 489 asprintf(&tmp,"Wrong order expected acl, got %s, sunshine.", fname); 490 fatal_error(tmp); 491 } 489 492 read_file_from_stream_to_file(acl_fname, *ptmp_size); 490 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);493 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 491 494 if (*pctrl_chr != BLK_STOP_EXAT_FILE) { 492 495 wrong_marker(BLK_STOP_EXAT_FILE, *pctrl_chr); 493 496 } 494 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);497 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 495 498 if (*pctrl_chr != BLK_STOP_EXTENDED_ATTRIBUTES) { 496 499 wrong_marker(BLK_STOP_EXTENDED_ATTRIBUTES, *pctrl_chr);
Note:
See TracChangeset
for help on using the changeset viewer.