Argument "." for system area import commands

This commit is contained in:
2014-10-28 14:07:32 +00:00
parent b66bf3e391
commit 9cd6c71d39
9 changed files with 330 additions and 240 deletions

View File

@ -965,7 +965,11 @@ treatment_patch:;
if(ret <= 0)
goto ex;
}
ret= Xorriso_set_system_area_path(xorriso, treatpt + 12, 0);
if(strcmp(treatpt + 12, ".") == 0) {
ret= Xorriso_set_system_area_path(xorriso, "", 0);
} else {
ret= Xorriso_set_system_area_path(xorriso, treatpt + 12, 0);
}
if(ret <= 0)
goto ex;
xorriso->system_area_options&= ~0x4000;
@ -1059,6 +1063,7 @@ treatment_patch:;
}
} else if(strncmp(treatpt, "platform_id=", 12)==0) {
u= 256; /* intentionally too large */
if(strncmp(treatpt + 12, "0x", 2) == 0)
sscanf(treatpt + 14, "%x", &u);
else
@ -1200,7 +1205,11 @@ treatment_patch:;
ret= Xorriso_coordinate_system_area(xorriso, 0, (1 << 14), eff_path, 1 | 2);
if(ret <= 0)
goto ex;
ret= Xorriso_set_system_area_path(xorriso, treatpt + 10, 0);
if(strcmp(treatpt + 10, ".") == 0) {
ret= Xorriso_set_system_area_path(xorriso, "", 0);
} else {
ret= Xorriso_set_system_area_path(xorriso, treatpt + 10, 0);
}
if(ret <= 0)
goto ex;
if(treatpt [10] == 0)