}
if(authfail_unsort[0]) {
if (!KeepTempLog && unlink(authfail_unsort)==-1)
- debuga(_("Failed to delete %s: %s\n"),authfail_unsort,strerror(errno));
+ debuga(_("Failed to delete \"%s\": %s\n"),authfail_unsort,strerror(errno));
}
}
longline_destroy(&line);
if (fclose(fp_in)==EOF) {
- debuga(_("Failed to close file %s: %s\n"),arq,strerror(errno));
+ debuga(_("Failed to close file \"%s\": %s\n"),arq,strerror(errno));
exit(EXIT_FAILURE);
}
}
}
if (!KeepTempLog && denied_unsort[0]) {
if (unlink(denied_unsort)==-1)
- debuga(_("Failed to delete %s: %s\n"),denied_unsort,strerror(errno));
+ debuga(_("Failed to delete \"%s\": %s\n"),denied_unsort,strerror(errno));
}
}
}
if (download_unsort[0]) {
if (unlink(download_unsort)==-1)
- debuga(_("Failed to delete %s: %s\n"),download_unsort,strerror(errno));
+ debuga(_("Failed to delete \"%s\": %s\n"),download_unsort,strerror(errno));
}
}
// convert any old report hierarchy
if ((dirp = opendir(outdir)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
exit(EXIT_FAILURE);
}
while ((direntp = readdir( dirp )) != NULL) {
ndays=0;
if ((dirp3 = opendir(monthdir)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),monthdir,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),monthdir,strerror(errno));
exit(EXIT_FAILURE);
}
monthdir_len=strlen(monthdir);
nmonths=0;
if ((dirp2 = opendir(yeardir)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),yeardir,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),yeardir,strerror(errno));
exit(EXIT_FAILURE);
}
yeardir_len=strlen(yeardir);
nyears=0;
if ((dirp = opendir(outdir)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
exit(EXIT_FAILURE);
}
while ((direntp = readdir( dirp )) != NULL) {
order=(strcmp(IndexSortOrder,"A") == 0) ? 1 : -1;
if ((dirp = opendir(outdir)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
exit(EXIT_FAILURE);
}
fputs("</table></div>\n",fp_ou);
write_html_trailer(fp_ou);
if (fclose(fp_ou)==EOF)
- debuga(_("Failed to close the index file %s - %s\n"),wdir,strerror(errno));
+ debuga(_("Write error in file \"%s\": %s\n"),wdir,strerror(errno));
if (sortlist) {
for (i=0 ; i<nsort ; i++) {
char remove[MAXLEN];
if ((dirp = opendir(dirname)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),dirname,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),dirname,strerror(errno));
exit(EXIT_FAILURE);
}
while ( (direntp = readdir( dirp )) != NULL ){
int name_len;
if ((dirp = opendir(Path)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),Path,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),Path,strerror(errno));
exit(EXIT_FAILURE);
}
while ((direntp = readdir( dirp )) != NULL )
}
strcpy(warea,Path);
if ((dirp = opendir(outdir)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),outdir,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),outdir,strerror(errno));
exit(EXIT_FAILURE);
}
while ((direntp = readdir( dirp )) != NULL )
if (Dir-Path<=BasePos) break;
*Dir='\0';
if ((dirp = opendir(Path)) == NULL) {
- debuga(_("Failed to open directory %s - %s\n"),Path,strerror(errno));
+ debuga(_("Cannot open directory \"%s\": %s\n"),Path,strerror(errno));
return;
}
index=false;
longline_destroy(&line);
if (fclose(fp_in)==EOF) {
- debuga(_("Failed to close file %s - %s\n"),arq,strerror(errno));
+ debuga(_("Failed to close file \"%s\": %s\n"),arq,strerror(errno));
}
if (autosplit && fp_ou) {
if (fclose(fp_ou)==EOF) {