Took into respect possible truncate mode change by AAIP variable isofs.nt

This commit is contained in:
2015-09-25 17:15:41 +00:00
parent f09b3c1e96
commit 9c907b1531
7 changed files with 125 additions and 79 deletions

View File

@ -4262,6 +4262,8 @@ ex:
}
/* @param flag bit0= allow to increase limit for loaded image
*/
int Xorriso_set_file_name_limit(struct XorrisO *xorriso, int value, int flag)
{
int ret;
@ -4271,10 +4273,19 @@ int Xorriso_set_file_name_limit(struct XorrisO *xorriso, int value, int flag)
if(ret < 0)
return(ret);
if (volume != NULL) {
Xorriso_msgs_submit(xorriso, 0,
"-file_name_limit cannot be changed while an ISO images is present",
if(flag & 1) {
/* >>> check whether there are non-refreshable truncated names */;
/* >>> refresh truncation of names */;
iso_image_set_truncate_mode(volume, 1, value);
} else {
Xorriso_msgs_submit(xorriso, 0,
"-file_name_limit may not be changed because a drive is acquired",
0, "SORRY", 0);
return(0);
return(0);
}
}
xorriso->file_name_limit= value;
return(1);