These messages are related to file manipulation.
}
if (fseek(fp_ex, 0, SEEK_END)==-1) {
- debuga(_("Failed to move till the end of the excluded users file %s: %s\n"),uexfile,strerror(errno));
+ debuga(_("Failed to move till the end of file \"%s\": %s\n"),uexfile,strerror(errno));
exit(EXIT_FAILURE);
}
nreg = ftell(fp_ex);
}
nreg += 11;
if (fseek(fp_ex, 0, SEEK_SET)==-1) {
- debuga(_("Failed to rewind the excluded users file %s: %s\n"),uexfile,strerror(errno));
+ debuga(_("Failed to rewind file \"%s\": %s\n"),uexfile,strerror(errno));
exit(EXIT_FAILURE);
}
}
strcpy(path+path_len,direntp->d_name);
if (MY_LSTAT(path,&statb) == -1) {
- debuga(_("Failed to get the file statistics of %s: %s\n"),path,strerror(errno));
+ debuga(_("Failed to get the statistics of file \"%s\": %s\n"),path,strerror(errno));
continue;
}
if (S_ISDIR(statb.st_mode))
}
strcpy(monthdir+monthdir_len,direntp->d_name);
if (MY_LSTAT(monthdir,&statb) == -1) {
- debuga(_("Failed to get the file statistics of %s: %s\n"),monthdir,strerror(errno));
+ debuga(_("Failed to get the statistics of file \"%s\": %s\n"),monthdir,strerror(errno));
continue;
}
if (S_ISDIR(statb.st_mode))
}
strcpy(yeardir+yeardir_len,direntp->d_name);
if (MY_LSTAT(yeardir,&statb) == -1) {
- debuga(_("Failed to get the file statistics of %s: %s\n"),yeardir,strerror(errno));
+ debuga(_("Failed to get the statistics of file \"%s\": %s\n"),yeardir,strerror(errno));
continue;
}
if (S_ISDIR(statb.st_mode))
}
strcpy(Path+Length,direntp->d_name);
if (stat(Path,&statb) == -1) {
- debuga(_("Failed to get the last modification time of %s\n"),Path);
+ debuga(_("Failed to get the statistics of file \"%s\": %s\n"),Path,strerror(errno));
continue;
}
if (!S_ISDIR(statb.st_mode)) continue;
}
strcpy(warea+name_pos,direntp->d_name);
if (stat(warea,&statb) == -1) {
- debuga(_("Failed to get the last modification time of %s\n"),warea);
+ debuga(_("Failed to get the statistics of file \"%s\": %s\n"),warea,strerror(errno));
continue;
}
if (!S_ISDIR(statb.st_mode)) continue;
}
strcat(Path,"/"INDEX_HTML_FILE);
if (unlink(Path)==-1) {
- // TRANSLATORS: The %s at the end is the system error message describing the reason for the failure.
- debuga(_("Failed to delete index file \"%s\" in the empty report directory: %s\n"),Path,strerror(errno));
+ debuga(_("Failed to delete \"%s\": %s\n"),Path,strerror(errno));
exit(EXIT_FAILURE);
}
*Dir='\0';
}
if (fseek(fp_usr, 0, SEEK_END)==-1) {
- debuga(_("Failed to move till the end of the users file %s: %s\n"),pwdfile,strerror(errno));
+ debuga(_("Failed to move till the end of file \"%s\": %s\n"),pwdfile,strerror(errno));
exit(EXIT_FAILURE);
}
nreg = ftell(fp_usr);
}
nreg = nreg+5000;
if (fseek(fp_usr, 0, SEEK_SET)==-1) {
- debuga(_("Failed to rewind the users file %s: %s\n"),pwdfile,strerror(errno));
+ debuga(_("Failed to rewind file \"%s\": %s\n"),pwdfile,strerror(errno));
exit(EXIT_FAILURE);
}
}
fp = fopen(file_name, "r");
if (!fp) {
- debuga(_("Failed to open the last modified log file \"%s\": %s\n"),file_name,strerror(errno));
+ debuga(_("Cannot open file \"%s\": %s\n"),file_name,strerror(errno));
exit(EXIT_FAILURE);
}
while((buf=longline_read(fp,line)) != NULL )
exit(EXIT_FAILURE);
}
if (fseek(fp_usr, 0, SEEK_END)==-1) {
- debuga(_("Failed to move till the end of the usertab file %s: %s\n"),UserTabFile,strerror(errno));
+ debuga(_("Failed to move till the end of file \"%s\": %s\n"),UserTabFile,strerror(errno));
exit(EXIT_FAILURE);
}
nreg = ftell(fp_usr);
}
nreg += 100;
if (fseek(fp_usr, 0, SEEK_SET)==-1) {
- debuga(_("Failed to rewind the usertab file %s: %s\n"),UserTabFile,strerror(errno));
+ debuga(_("Failed to rewind file \"%s\": %s\n"),UserTabFile,strerror(errno));
exit(EXIT_FAILURE);
}
if((userfile=(char *) malloc(nreg))==NULL){
}
if (fseek(fp_in, 0, SEEK_END)==-1) {
- debuga(_("Failed to move till the end of the excluded codes file %s: %s\n"),ExcludeCodes,strerror(errno));
+ debuga(_("Failed to move till the end of file \"%s\": %s\n"),ExcludeCodes,strerror(errno));
exit(EXIT_FAILURE);
}
MemSize = ftell(fp_in);
exit(EXIT_FAILURE);
}
if (fseek(fp_in, 0, SEEK_SET)==-1) {
- debuga(_("Failed to rewind the excluded codes file %s: %s\n"),ExcludeCodes,strerror(errno));
+ debuga(_("Failed to rewind file \"%s\": %s\n"),ExcludeCodes,strerror(errno));
exit(EXIT_FAILURE);
}
for (i=strlen(data)-1 ; i>=0 && (unsigned char)data[i]<=' ' ; i--) data[i]='\0';
if (i<0) continue;
if (Stored+i+2>=MemSize) {
- debuga(_("Too many codes to exclude in file %s\n"),ExcludeCodes);
+ debuga(_("Too many codes to exclude in file \"%s\"\n"),ExcludeCodes);
break;
}
strcat(excludecode,data);