Hi, I am currently learning dspam. When I tried to use it as a user, I got some errors including :
Unable to open file for reading: /var/spool/dspam/data/local/arno/arno.lock:
Permission denied
while I had read permission on that file. I discovered it came from
function _hash_drv_lock_get in hash_drv.c
s->lock = fopen(filename, "a");
if (s->lock == NULL) {
LOG(LOG_ERR, ERR_IO_FILE_OPEN, filename, strerror(errno));
return EFAILURE;
}
may be
LOG(LOG_ERR, ERR_IO_FILE_WRITE, filename, strerror(errno));
would be less confusing
I also noticed the same pattern in _hash_drv_open (same file)
f = fopen(filename, "w");
if (!f) {
LOG(LOG_ERR, ERR_IO_FILE_OPEN, filename, strerror(errno));
return EFILE;
}
hope this helps
arno
signature.asc
Description: Digital signature
