"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xorriso/match.c" between
libisoburn-1.5.0.tar.gz and libisoburn-1.5.2.tar.gz

About: libisoburn is a frontend for the libraries libburn and libisofs which enables creation and expansion of ISO-9660 filesystems on all media and file types supported by libburn. It implements the API and command interpreter of program xorriso, and installs this program as small dynamically linked binary. xorriso is suitable for incremental data backup and for production of bootable ISO 9660 images. A statically linked version is available as GNU xorriso.

match.c  (libisoburn-1.5.0):match.c  (libisoburn-1.5.2)
skipping to change at line 115 skipping to change at line 115
strcpy(adr_part,cpt); strcpy(adr_part,cpt);
} else { } else {
if(npt-cpt >= adr_size) if(npt-cpt >= adr_size)
{ret= -1; goto ex;} {ret= -1; goto ex;}
strncpy(adr_part,cpt,npt-cpt); strncpy(adr_part,cpt,npt-cpt);
adr_part[npt-cpt]= 0; adr_part[npt-cpt]= 0;
} }
if(adr_part[0]==0) if(adr_part[0]==0)
goto next_adr_part; goto next_adr_part;
if(adr_part[0]=='.' && adr_part[1]==0 && if(adr_part[0] == '.' && adr_part[1] == 0)
(xorriso->re_fill>0 || i<count-1))
goto next_adr_part; goto next_adr_part;
if(adr_part[0]=='.' && adr_part[1]=='.' && adr_part[2]==0) { if(adr_part[0]=='.' && adr_part[1]=='.' && adr_part[2]==0) {
/* delete previous part */ /* delete previous part */
if(xorriso->re_fill <= 0) { if(xorriso->re_fill <= 0) {
bonked= 1; bonked= 1;
goto next_adr_part; goto next_adr_part;
} }
if(xorriso->re_constants[xorriso->re_fill-1]!=NULL) { if(xorriso->re_constants[xorriso->re_fill-1]!=NULL) {
free(xorriso->re_constants[xorriso->re_fill-1]); free(xorriso->re_constants[xorriso->re_fill-1]);
xorriso->re_constants[xorriso->re_fill-1]= NULL; xorriso->re_constants[xorriso->re_fill-1]= NULL;
skipping to change at line 161 skipping to change at line 160
cpt++; cpt++;
} }
if(bonked) { if(bonked) {
if(flag&2) if(flag&2)
{ret= 2; goto ex;} {ret= 2; goto ex;}
sprintf(xorriso->info_text, "Your '..' bonked at the %s directory.", sprintf(xorriso->info_text, "Your '..' bonked at the %s directory.",
is_still_relative ? "working" : "root"); is_still_relative ? "working" : "root");
Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE",0); Xorriso_msgs_submit(xorriso, 0, xorriso->info_text, 0, "FAILURE",0);
{ret= 0; goto ex;} {ret= 0; goto ex;}
} }
if(xorriso->re_fill == 0 && is_still_relative) {
/* "." and its equivalents end up here */
if(Sregex_string(&(xorriso->re_constants[0]), ".", 0) <=0)
{ret= -1; goto ex;}
xorriso->re_fill= 1;
}
Xorriso__bourne_to_reg(adr_start,xorriso->reg_expr,0); /* just for show */ Xorriso__bourne_to_reg(adr_start,xorriso->reg_expr,0); /* just for show */
} else { } else {
is_constant= 0; is_constant= 0;
if(strcmp(adr,"*")==0 || adr[0]==0) { if(strcmp(adr,"*")==0 || adr[0]==0) {
is_constant= 1; is_constant= 1;
} else if(xorriso->search_mode==3 || xorriso->search_mode==4) { } else if(xorriso->search_mode==3 || xorriso->search_mode==4) {
ret= Xorriso__bourne_to_reg(adr,xorriso->reg_expr,0); ret= Xorriso__bourne_to_reg(adr,xorriso->reg_expr,0);
is_constant= (ret==2); is_constant= (ret==2);
 End of changes. 2 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)