New (yet inofficial) -find actions set/get_hfs_crtp, set/get_hfs_bless

This commit is contained in:
2012-05-30 15:34:07 +00:00
parent f6817911a1
commit 22eee798e1
5 changed files with 166 additions and 16 deletions

View File

@ -1081,6 +1081,29 @@ not_enough_exec_arguments:;
Findjob_set_action_target(job, 44, argv[i], 0);
list_extattr_head= 1;
list_extattr_mode= argv[i];
} else if(strcmp(cpt, "set_hfs_crtp")==0) {
if(i + 2 >= end_idx)
goto not_enough_exec_arguments;
i+= 2;
/* Check creator and type for compliance */
ret= Xorriso_hfsplus_file_creator_type(xorriso, "", NULL,
argv[i - 1], argv[i], 1);
if(ret <= 0)
goto ex;
Findjob_set_action_text_2(job, 45, argv[i - 1], argv[i], 0);
} else if(strcmp(cpt, "get_hfs_crtp")==0) {
Findjob_set_action_target(job, 46, NULL, 0);
} else if(strcmp(cpt, "set_hfs_bless")==0) {
if(i+1>=end_idx)
goto not_enough_exec_arguments;
i++;
/* Check type of blessing for compliance */
ret= Xorriso_hfsplus_bless(xorriso, "", NULL, argv[i], 4);
if(ret <= 0)
goto ex;
Findjob_set_action_target(job, 47, argv[i], 0);
} else if(strcmp(cpt, "get_hfs_bless")==0) {
Findjob_set_action_target(job, 48, NULL, 0);
} else {
sprintf(xorriso->info_text, "-find -exec: unknown action ");
Text_shellsafe(argv[i], xorriso->info_text, 1);