diff -crB scannedonly-0.20/src/scannedonlyd_clamav.c scannedonly-0.20-r1/src/scannedonlyd_clamav.c *** scannedonly-0.20/src/scannedonlyd_clamav.c Tue Apr 20 12:56:33 2010 --- scannedonly-0.20-r1/src/scannedonlyd_clamav.c Tue Jul 13 16:00:27 2010 *************** *** 168,174 **** syslog(LOG_NOTICE, "when trying to copy %s to %s, failed to open %s %d: %s\n",from,to,from,errno,strerror(errno)); return -1; } ! tofd = open(to, O_WRONLY | O_CREAT); if (!tofd) { syslog(LOG_NOTICE, "when trying to copy %s to %s, failed to open %s %d: %s\n",from,to,to,errno,strerror(errno)); return -1; --- 168,174 ---- syslog(LOG_NOTICE, "when trying to copy %s to %s, failed to open %s %d: %s\n",from,to,from,errno,strerror(errno)); return -1; } ! tofd = open(to, O_WRONLY | O_CREAT, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); if (!tofd) { syslog(LOG_NOTICE, "when trying to copy %s to %s, failed to open %s %d: %s\n",from,to,to,errno,strerror(errno)); return -1; *************** *** 950,956 **** } if (domain_socket) { ! s = open("/proc/sys/net/unix/max_dgram_qlen",O_WRONLY); if (s > 0) { write(s, "200", 3); close(s); --- 950,956 ---- } if (domain_socket) { ! s = open("/proc/sys/net/unix/max_dgram_qlen",O_WRONLY,S_IRUSR|S_IWUSR); if (s > 0) { write(s, "200", 3); close(s);