|
|
|
@ -1032,6 +1032,23 @@ not_enough_arguments:;
|
|
|
|
|
ret= Findjob_set_num_filter(job, 24, count, 0, 0);
|
|
|
|
|
if(ret <= 0)
|
|
|
|
|
goto ex;
|
|
|
|
|
} else if(strcmp(argv[i], "-maxdepth") == 0 ||
|
|
|
|
|
strcmp(argv[i], "-mindepth") == 0) {
|
|
|
|
|
if(i + 1 >= end_idx)
|
|
|
|
|
goto not_enough_arguments;
|
|
|
|
|
i++;
|
|
|
|
|
count= -1;
|
|
|
|
|
sscanf(argv[i], "%d", &count);
|
|
|
|
|
if(count < 0) {
|
|
|
|
|
sprintf(xorriso->info_text,
|
|
|
|
|
"-findi: wrong length with %s [>= 0]", argv[i - 1]);
|
|
|
|
|
goto sorry_ex;
|
|
|
|
|
}
|
|
|
|
|
ret= Findjob_set_num_filter(job,
|
|
|
|
|
25 + (strcmp(argv[i - 1], "-mindepth") == 0),
|
|
|
|
|
count, 0, 0);
|
|
|
|
|
if(ret <= 0)
|
|
|
|
|
goto ex;
|
|
|
|
|
} else if(strcmp(argv[i], "-exec")==0) {
|
|
|
|
|
if(i+1>=end_idx) {
|
|
|
|
|
not_enough_exec_arguments:;
|
|
|
|
@ -2030,7 +2047,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",
|
|
|
|
|
" -name_limit_blocker, -maxdepth, -mindepth,",
|
|
|
|
|
" -prune, -decision yes|no, -true, -false",
|
|
|
|
|
" Operators: -not, -or, -and, -sub, (, -subend, ),",
|
|
|
|
|
" -if, -then, -elseif, -else, -endif",
|
|
|
|
|