Bug fix: -disk_pattern on -add ./ -- mistook "./" for the root directory
This commit is contained in:
parent
fe5fd8eefa
commit
4db0aab0cb
@ -113,8 +113,7 @@ int Xorriso_prepare_regex(struct XorrisO *xorriso, char *adr, int flag)
|
|||||||
|
|
||||||
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 */
|
||||||
@ -159,6 +158,12 @@ next_adr_part:;
|
|||||||
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 */
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2019.08.14.144754"
|
#define Xorriso_timestamP "2019.09.01.071701"
|
||||||
|
Loading…
Reference in New Issue
Block a user