Bug fix: -cut_out deleted previously cut-out pieces of the same file

This commit is contained in:
Thomas Schmitt 2009-09-22 14:34:33 +00:00
parent 35c760ba30
commit 57da7013d3
3 changed files with 19 additions and 2 deletions

View File

@ -3743,6 +3743,21 @@ int Splitpart__parse(char *name, int *partno, int *total_parts,
}
int Splitpart__is_part_path(char *path, int flag)
{
int partno, total_parts, ret;
off_t offset, bytes, total_bytes;
char *name;
name= strrchr(path, '/');
if(name == NULL)
name= path;
ret= Splitpart__parse(name, &partno, &total_parts, &offset, &bytes,
&total_bytes, 0);
return(ret > 0);
}
int Splitpart__compose(char *adr, int partno, int total_parts,
off_t offset, off_t bytes, off_t total_bytes, int flag)
{
@ -12768,7 +12783,7 @@ int Xorriso_may_burn(struct XorrisO *xorriso, int flag)
return(1);
sprintf(xorriso->info_text, "The output drive was not aquired exclusively.");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE", 0);
sprintf(xorriso->info_text, "A possible remedy is: -ossirox 'o_excl_on'");
sprintf(xorriso->info_text, "A possible remedy is: -osirrox 'o_excl_on'");
if(xorriso->outdev[0]) {
strcat(xorriso->info_text," -outdev ");
Text_shellsafe(xorriso->outdev, xorriso->info_text, 1);

View File

@ -1171,6 +1171,8 @@ int Splitparts_get(struct SplitparT *o, int idx, char **name, int *partno,
int Splitpart__parse(char *name, int *partno, int *total_parts,
off_t *offset, off_t *bytes, off_t *total_bytes, int flag);
int Splitpart__is_part_path(char *path, int flag);
int Splitpart__compose(char *adr, int partno, int total_parts,
off_t offset, off_t bytes, off_t total_bytes, int flag);

View File

@ -1 +1 @@
#define Xorriso_timestamP "2009.09.20.110715"
#define Xorriso_timestamP "2009.09.22.143534"