Changeset 955 in MondoRescue
- Timestamp:
- Nov 21, 2006, 1:42:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mondo/src/common/libmondo-stream.c
r948 r955 444 444 int res = 0; 445 445 int retval = 0; 446 char *fname = (char *)&res; /* Should NOT be NULL */ 446 447 447 448 // xattr 448 449 if (g_getfattr) { 449 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);450 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 450 451 if (*pctrl_chr != BLK_START_EXAT_FILE) { 451 452 wrong_marker(BLK_START_EXAT_FILE, *pctrl_chr); 452 453 } 453 if (!strstr( tmp_fname, "xattr")) {454 if (!strstr(fname, "xattr")) { 454 455 fatal_error("Wrong order, sunshine."); 455 456 } … … 463 464 // acl 464 465 if (g_getfacl) { 465 res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);466 if (!strstr( tmp_fname, "acl")) {466 res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr); 467 if (!strstr(fname, "acl")) { 467 468 fatal_error("Wrong order, sunshine."); 468 469 } … … 493 494 int res = 0; 494 495 if (g_getfattr) { 495 // xattr496 // xattr 496 497 write_header_block_to_stream(length_of_file(xattr_fname), xattr_fname, 497 498 BLK_START_EXTENDED_ATTRIBUTES); … … 502 503 } 503 504 if (g_getfacl) { 504 // acl505 // acl 505 506 write_header_block_to_stream(length_of_file(acl_fname), acl_fname, 506 507 BLK_START_EXAT_FILE);
Note:
See TracChangeset
for help on using the changeset viewer.