If sarg is ran with command line option -i, in some circunstances I have
yet to clarify, the ip file is not produced. In that case, the name of
the previously created file (whose name is still in the string buffer)
is deleted a second time. The result is a failure as the file doesn't
exists any more.
Thanks to Arnaud Florent for reporting this bug.
debuga(_("Making report: %s\n"),uinfo->id);
}
count=0;
+ arqip[0]='\0';
while((buf=longline_read(fp_in,line))!=NULL) {
getword_start(&gwarea,buf);
fclose(fp_in);
longline_destroy(&line);
- if (iprel) {
+ if (iprel && arqip[0]) {
if (unlink(arqip)) {
debuga(_("Cannot delete %s - %s\n"),arqip,strerror(errno));
exit(EXIT_FAILURE);