New command -rr_reloc_dir
This commit is contained in:
@ -636,6 +636,26 @@ unknown_mode:;
|
||||
}
|
||||
|
||||
|
||||
/* Command -rr_reloc_dir */
|
||||
int Xorriso_option_rr_reloc_dir(struct XorrisO *xorriso, char *name, int flag)
|
||||
{
|
||||
if(strlen(name) > 255) {
|
||||
sprintf(xorriso->info_text,
|
||||
"Name too long with -rr_reloc_dir. Max. 255 bytes allowed.");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
return(0);
|
||||
}
|
||||
if(strchr(name, '/') != NULL) {
|
||||
sprintf(xorriso->info_text,
|
||||
"Name given with -rr_reloc_dir contains '/' character");
|
||||
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
|
||||
return(0);
|
||||
}
|
||||
strcpy(xorriso->rr_reloc_dir, name);
|
||||
return(1);
|
||||
}
|
||||
|
||||
|
||||
/* Option -scdbackup_tag list_path record_name */
|
||||
int Xorriso_option_scdbackup_tag(struct XorrisO *xorriso, char *listname,
|
||||
char *recname, int flag)
|
||||
|
Reference in New Issue
Block a user