On Thu, July 23, 2009 10:54, Steve wrote:
> Hmm... I remember seen patches to the hash driver in GIT regarding that
issue. Let me look.
>
> Okay. I think this here is the problem (function _ds_get_signature in
src/hash_drv.c):
> if (fread(SIG->data, statbuf.st_size, 1, file) != statbuf.st_size) {
> LOG(LOG_ERR, ERR_IO_FILE_READ, filename, strerror(errno));
> return EFAILURE;
> }
>
> That should be:
> if (fread(SIG->data, statbuf.st_size, 1, file) != 1) {
> LOG(LOG_ERR, ERR_IO_FILE_READ, filename, strerror(errno));
> return EFAILURE;
> }
Tested with success - thank you very much Steve. Following is the above in
diff -c format in case it's useful.
*** hash_drv.c.orig 2009-07-23 11:13:28.000000000 -0700
--- hash_drv.c 2009-07-23 11:14:43.000000000 -0700
***************
*** 853,859 ****
return EFAILURE;
}
! if (fread(SIG->data, statbuf.st_size, 1, file) != statbuf.st_size) {
LOG(LOG_ERR, ERR_IO_FILE_READ, filename, strerror(errno));
return EFAILURE;
}
--- 853,859 ----
return EFAILURE;
}
! if (fread(SIG->data, statbuf.st_size, 1, file) != 1) {
LOG(LOG_ERR, ERR_IO_FILE_READ, filename, strerror(errno));
return EFAILURE;
}
------------------------------------------------------------------------------
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user