Discarding lfa_flags after loading if not enabled by -lfa_flags "read:on". Introduced new -chattr mode --remove-lfa-flags

This commit is contained in:
2024-07-22 14:42:22 +02:00
parent 8397e587f3
commit 4de02bf9a2
9 changed files with 181 additions and 103 deletions

View File

@ -180,6 +180,13 @@ static int Xorriso_grasp_loaded_aaip(struct XorrisO *xorriso, IsoImage *volset,
free(value);
}
if(!(xorriso->do_aaip & (1 << 11))) {
/* lfa_flags not enabled for "read" */
ret= Xorriso_remove_all_lfa_flags(xorriso, 0);
if(ret <= 0)
goto ex;
}
if(xorriso->do_hfsplus) {
/* Bring isofs.hx to iso_hfsplus_xinfo_func,
isofs.hb to IsoImage blessings
@ -194,6 +201,7 @@ static int Xorriso_grasp_loaded_aaip(struct XorrisO *xorriso, IsoImage *volset,
&dir_stbuf, 0, 0);
if(ret <= 0)
goto ex;
Findjob_destroy(&job, 0);
}
ret= 1;