> + /* Strip leading slashes */ > + while (filename[offset] == '/') > + offset+=1; > + > + /* Strip leading ./ */ > + while (filename[offset] == '.' && filename[offset+1] == '/') > + offset+=2; I think you're still going to have the problem with "/", ".", "./" that pjones mentioned in https://www.redhat.com/archives/anaconda-devel-list/2009-December/msg00416.html here. > + if (fdout==NULL){ > + free((void*)filename); > + rc = 33; > + break; > + } I don't think you need to cast this. - Chris _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list