New -find test -name_limit_blocker. Made -file_name_limit ready for loaded ISOs
This commit is contained in:
@ -664,6 +664,8 @@ int Xorriso_option_file_name_limit(struct XorrisO *xorriso, char *value,
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "SORRY", 0);
|
||||
return(0);
|
||||
}
|
||||
if(num == xorriso->file_name_limit)
|
||||
return(1);
|
||||
ret= Xorriso_set_file_name_limit(xorriso, (int) num, sub_flag);
|
||||
return(ret > 0);
|
||||
}
|
||||
@ -1009,6 +1011,19 @@ not_enough_arguments:;
|
||||
argv[i], 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
} else if(strcmp(argv[i], "-name_limit_blocker") == 0) {
|
||||
if(i + 1 >= end_idx)
|
||||
goto not_enough_arguments;
|
||||
i++;
|
||||
sscanf(argv[i], "%d", &count);
|
||||
if(count < 64 || count > 255) {
|
||||
sprintf(xorriso->info_text,
|
||||
"-findi: wrong length with -name_limit_blocker [64...255]");
|
||||
goto sorry_ex;
|
||||
}
|
||||
ret= Findjob_set_num_filter(job, 24, count, 0, 0);
|
||||
if(ret <= 0)
|
||||
goto ex;
|
||||
} else if(strcmp(argv[i], "-exec")==0) {
|
||||
if(i+1>=end_idx) {
|
||||
not_enough_exec_arguments:;
|
||||
@ -2000,6 +2015,7 @@ int Xorriso_option_help(struct XorrisO *xorriso, int flag)
|
||||
" -lba_range start count, -damaged, -has_acl, -has_xattr,",
|
||||
" -has_aaip, -has_filter, -has_md5, -has_any_xattr,",
|
||||
" -has_hfs_crtp, -has_hfs_bless, -bad_outname,",
|
||||
" -name_limit_blocker",
|
||||
" -prune, -decision yes|no, -true, -false",
|
||||
" Operators: -not, -or, -and, -sub, (, -subend, ),",
|
||||
" -if, -then, -elseif, -else, -endif",
|
||||
|
Reference in New Issue
Block a user