Improved effective drive address with -as mkisofs -M
This commit is contained in:
@ -7537,11 +7537,9 @@ int Xorriso_genisofs(struct XorrisO *xorriso, char *whom,
|
||||
goto not_enough_args;
|
||||
i++;
|
||||
indev[0]= 0;
|
||||
|
||||
/* >>> MULTI :
|
||||
check whether indev is a valid MMC drive. Else : */
|
||||
ret= Xorriso_libburn_adr(xorriso, argv[i], sfe, 0);
|
||||
if(ret<=0)
|
||||
strcpy(indev, "stdio:");
|
||||
|
||||
if(Sfile_str(indev+strlen(indev), argv[i], 0)<=0)
|
||||
{ret= -1; goto ex;}
|
||||
} else if(strcmp(argv[i], "-C")==0 ||
|
||||
@ -12167,7 +12165,7 @@ return:
|
||||
*/
|
||||
{
|
||||
int ret, was_dashed, end_ret, num1, num2;
|
||||
char *cmd, *original_cmd, cmd_data[2*SfileadrL], *arg1, *arg2, type_text[5];
|
||||
char *cmd, *original_cmd, cmd_data[2*SfileadrL], *arg1, *arg2;
|
||||
|
||||
if(xorriso==NULL)
|
||||
return(0);
|
||||
@ -12638,13 +12636,17 @@ next_command:;
|
||||
ret= Xorriso_option_temp_mem_limit(xorriso, arg1, 0);
|
||||
|
||||
} else if(strcmp(cmd,"test")==0) { /* This option does not exist. */
|
||||
(*idx)+= 2;
|
||||
ret= Xorriso_restore_is_identical(xorriso, NULL, arg2, arg1, type_text, 2);
|
||||
if(ret>=0) {
|
||||
sprintf(xorriso->info_text, "ISO node and disk file are %s\n",
|
||||
ret>0 ? ret==2 ? "suspicious" : "identical" : "different");
|
||||
Xorriso_info(xorriso, 0);
|
||||
}
|
||||
char buf[SfileadrL];
|
||||
|
||||
(*idx)+= 1;
|
||||
ret= Xorriso_libburn_adr(xorriso, arg1, buf, 0);
|
||||
if(ret>0)
|
||||
sprintf(xorriso->info_text, " %s -> %s\n", arg1, buf);
|
||||
else if(ret==0)
|
||||
sprintf(xorriso->info_text, " not a libburn drive: %s\n", arg1);
|
||||
else
|
||||
sprintf(xorriso->info_text, " severe error with: %s\n", arg1);
|
||||
Xorriso_info(xorriso, 0);
|
||||
|
||||
} else if(strcmp(cmd,"toc")==0) {
|
||||
Xorriso_option_toc(xorriso, 0);
|
||||
|
Reference in New Issue
Block a user