New (yet inofficial) -find tests -has_hfs_crtp, has_hfs_bless

This commit is contained in:
2012-05-31 07:04:46 +00:00
parent 9e2e34fc9b
commit 61f46d5e4d
5 changed files with 145 additions and 22 deletions

View File

@ -796,6 +796,28 @@ not_enough_arguments:;
goto sorry_ex;
}
}
} else if(strcmp(argv[i], "-has_hfs_crtp")==0) {
if(i + 2 >= end_idx)
goto not_enough_arguments;
i+= 2;
ret= Xorriso_hfsplus_file_creator_type(xorriso, "", NULL,
argv[i - 1], argv[i], 3);
ret= Findjob_set_crtp_filter(job, argv[i - 1], argv[i], 0);
if(ret <= 0) {
sprintf(xorriso->info_text, "-findi: cannot setup -has_hfs_crtp test");
goto sorry_ex;
}
} else if(strcmp(argv[i], "-has_hfs_bless")==0) {
if(i + 1 >= end_idx)
goto not_enough_arguments;
i+= 1;
ret= Findjob_set_bless_filter(xorriso, job, argv[i], 0);
if(ret <= 0) {
sprintf(xorriso->info_text, "-findi: cannot setup -has_hfs_bless test");
goto sorry_ex;
}
} else if(strcmp(argv[i], "-true") == 0) {
ret= Findjob_set_false(job, -1, 0);
} else if(strcmp(argv[i], "-false") == 0) {